Merge remote-tracking branch 'can1357/main' into feat/advisor-per-agent-toggle
This commit is contained in:
@@ -1266,7 +1266,15 @@ export class CommandController {
|
||||
this.ctx.rebuildChatFromMessages();
|
||||
|
||||
this.ctx.statusLine.invalidate();
|
||||
this.ctx.ui.requestRender();
|
||||
// Same as the auto-compaction rebuild: a collapsed transcript is an
|
||||
// intentional replacement, so drop the stale pre-compaction scrollback
|
||||
// instead of repainting the shrunken frame below it. With collapse
|
||||
// disabled the full history stays inline and scrollback is kept.
|
||||
if (this.ctx.settings.get("display.collapseCompacted")) {
|
||||
this.ctx.ui.requestRender(true, { clearScrollback: true });
|
||||
} else {
|
||||
this.ctx.ui.requestRender();
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof CompactionCancelledError) {
|
||||
outcome = "cancelled";
|
||||
|
||||
Reference in New Issue
Block a user