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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user