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:47:02 +01:00
committed by can1357
parent b135c4567d
commit 284f80995e
3 changed files with 6 additions and 5 deletions
@@ -212,11 +212,13 @@ export class InteractiveMode implements InteractiveModeContext {
{ name: "login", description: "Login with OAuth provider" },
{ name: "logout", description: "Logout from OAuth provider" },
{ name: "new", description: "Start a new session" },
{ name: "fork", description: "Duplicate current session into a new session" },
{ name: "compact", description: "Manually compact the session context" },
{ name: "handoff", description: "Hand off the session context to a new session" },
{ name: "background", description: "Detach UI and continue running in background" },
{ name: "bg", description: "Alias for /background" },
{ name: "resume", description: "Resume a different session" },
{ name: "debug", description: "Write debug log (TUI state and messages)" },
{ name: "exit", description: "Exit the application" },
];