mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
feat(coding-agent): display timeout in bash tool UI (#780)
This commit is contained in:
parent
fc3ca545df
commit
c45ea27de5
1 changed files with 7 additions and 1 deletions
|
|
@ -341,10 +341,16 @@ export class ToolExecutionComponent extends Container {
|
|||
*/
|
||||
private renderBashContent(): void {
|
||||
const command = this.args?.command || "";
|
||||
const timeout = this.args?.timeout as number | undefined;
|
||||
|
||||
// Header
|
||||
const timeoutSuffix = timeout ? theme.fg("muted", ` (timeout ${timeout}s)`) : "";
|
||||
this.contentBox.addChild(
|
||||
new Text(theme.fg("toolTitle", theme.bold(`$ ${command || theme.fg("toolOutput", "...")}`)), 0, 0),
|
||||
new Text(
|
||||
theme.fg("toolTitle", theme.bold(`$ ${command || theme.fg("toolOutput", "...")}`)) + timeoutSuffix,
|
||||
0,
|
||||
0,
|
||||
),
|
||||
);
|
||||
|
||||
if (this.result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue