Merge remote-tracking branch 'can1357/main' into feat/advisor-per-agent-toggle

This commit is contained in:
DarkPhilosophy
2026-07-13 23:16:26 +03:00
279 changed files with 31051 additions and 2804 deletions
@@ -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";