fix(tui): simplify shell output headings

This commit is contained in:
Aiden Cline
2026-06-18 12:50:47 +02:00
parent 4e50c40f50
commit 5273f8dd7b
5 changed files with 20 additions and 20 deletions
+2 -4
View File
@@ -630,13 +630,11 @@ function scrollBashStart(p: ToolProps<typeof BashTool>): string {
return `$ ${cmd}`
}
const title = dir ? `Shell in ${dir}` : "Shell"
if (!cmd) {
return `# ${title}`
return dir ? `# Running in ${dir}` : ""
}
return `# ${title}\n$ ${cmd}`
return `# Running in ${dir}\n$ ${cmd}`
}
function scrollBashProgress(p: ToolProps<typeof BashTool>): string {