fix(coding-agent): guarded fork during streaming

- Blocked /fork while streaming to avoid split session logs.

- Preserved queued and next-turn messages when forking.
This commit is contained in:
Can Bölük
2026-01-28 01:45:34 +01:00
committed by can1357
parent b135c4567d
commit 284f80995e
3 changed files with 6 additions and 5 deletions
@@ -419,6 +419,10 @@ export class CommandController {
}
async handleForkCommand(): Promise<void> {
if (this.ctx.session.isStreaming) {
this.ctx.showWarning("Wait for the current response to finish or abort it before forking.");
return;
}
if (this.ctx.loadingAnimation) {
this.ctx.loadingAnimation.stop();
this.ctx.loadingAnimation = undefined;