Merge pull request #610 from tallshort/fix/expand-hint

fix(coding-agent): show '(ctrl+o to collapse)' hint for bash output when expanded
This commit is contained in:
Mario Zechner 2026-01-10 13:34:30 +01:00 committed by GitHub
commit 52e2b4e780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,11 @@ export class BashExecutionComponent extends Container {
// Show how many lines are hidden (collapsed preview)
if (hiddenLineCount > 0) {
statusParts.push(theme.fg("dim", `... ${hiddenLineCount} more lines (ctrl+o to expand)`));
if (this.expanded) {
statusParts.push(theme.fg("dim", "(ctrl+o to collapse)"));
} else {
statusParts.push(theme.fg("dim", `... ${hiddenLineCount} more lines (ctrl+o to expand)`));
}
}
if (this.status === "cancelled") {