mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 11:04:35 +00:00
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:
commit
52e2b4e780
1 changed files with 5 additions and 1 deletions
|
|
@ -166,8 +166,12 @@ export class BashExecutionComponent extends Container {
|
||||||
|
|
||||||
// Show how many lines are hidden (collapsed preview)
|
// Show how many lines are hidden (collapsed preview)
|
||||||
if (hiddenLineCount > 0) {
|
if (hiddenLineCount > 0) {
|
||||||
|
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)`));
|
statusParts.push(theme.fg("dim", `... ${hiddenLineCount} more lines (ctrl+o to expand)`));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.status === "cancelled") {
|
if (this.status === "cancelled") {
|
||||||
statusParts.push(theme.fg("warning", "(cancelled)"));
|
statusParts.push(theme.fg("warning", "(cancelled)"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue