first pass at terminal tool output ui

This commit is contained in:
Nate 2025-03-09 14:30:05 -07:00 • committed by chezsmithy
parent b9295c722a
commit 75a1849ecb
4 changed files with 43 additions and 1 deletions

2
.gitignore vendored
View file

@ -173,4 +173,4 @@ extensions/.continue-debug/
*.vsix
.continuerules
**/.continue/assistants/
CLAUDE.md

View file

@ -7,6 +7,12 @@ export type ToCoreFromWebviewProtocol = ToCoreFromIdeOrWebviewProtocol & {
{ id: string | null; profileId?: string | null },
void,
];
};
export type ToWebviewFromCoreProtocol = ToWebviewFromIdeOrCoreProtocol & {
didChangeAvailableProfiles: [
{ profiles: ProfileDescription[]; selectedProfileId: string | null },
void,
];
toolCallPartialOutput: [
{ toolCallId: string; contextItems: any[] },
void,

View file

@ -83,4 +83,5 @@ export const CORE_TO_WEBVIEW_PASS_THROUGH: (keyof ToWebviewFromCoreProtocol)[] =
"didCloseFiles",
"toolCallPartialOutput",
"process/isBackgroundedResponse",
"docs/suggestions",
];

View file

@ -72,6 +72,41 @@ function parseTerminalOutput(output: string): {
};
}
const OutputContainer = styled.div`
margin-top: 8px;
border-top: 1px solid rgba(128, 128, 128, 0.2);
padding-top: 8px;
`;
const OutputTitle = styled.div`
font-size: 12px;
color: #888;
margin-bottom: 4px;
display: flex;
align-items: center;
`;
const RunningDot = styled.div`
width: 8px;
height: 8px;
background-color: #4caf50;
border-radius: 50%;
margin-left: 6px;
animation: pulse 1.5s infinite;
@keyframes pulse {
0% {
opacity: 0.4;
}
50% {
opacity: 1;
}
100% {
opacity: 0.4;
}
}
`;
export function RunTerminalCommand(props: RunTerminalCommandToolCallProps) {
const dispatch = useDispatch<ThunkDispatch<any, any, AnyAction>>();