feat: align TaskOutput UX with Bash output (#1029)

This commit is contained in:
Charles Packer
2026-02-18 22:53:41 -08:00
committed by GitHub
parent 674e8c12c2
commit 47e81433ff
9 changed files with 266 additions and 44 deletions

View File

@@ -68,9 +68,8 @@ export function getDisplayToolName(rawName: string): string {
if (rawName === "Replace" || rawName === "replace") return "Update";
if (rawName === "WriteFile" || rawName === "write_file") return "Write";
if (rawName === "KillBash") return "Kill Bash";
if (rawName === "BashOutput" || rawName === "TaskOutput") {
return "Shell Output";
}
if (rawName === "BashOutput") return "Shell Output";
if (rawName === "TaskOutput") return "Task Output";
if (rawName === "MultiEdit") return "Update";
// No mapping found, return as-is
@@ -215,6 +214,15 @@ export function isShellTool(name: string): boolean {
);
}
/**
* Checks if a tool should use shell-style streaming output rendering.
* Includes shell command tools plus TaskOutput/BashOutput pollers.
*/
export function isShellOutputTool(name: string): boolean {
const n = name.toLowerCase();
return isShellTool(name) || n === "taskoutput" || n === "bashoutput";
}
/**
* Checks if a tool is a search/grep tool
*/