mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 01:00:24 +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 {
|
private renderBashContent(): void {
|
||||||
const command = this.args?.command || "";
|
const command = this.args?.command || "";
|
||||||
|
const timeout = this.args?.timeout as number | undefined;
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
|
const timeoutSuffix = timeout ? theme.fg("muted", ` (timeout ${timeout}s)`) : "";
|
||||||
this.contentBox.addChild(
|
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) {
|
if (this.result) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue