feat(coding-agent): display timeout in bash tool UI (#780)

This commit is contained in:
Danila Poyarkov 2026-01-16 19:49:33 +03:00 committed by GitHub
parent fc3ca545df
commit c45ea27de5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {