Repository navigation
Description
Problem
The interactive model switch explicitly restarts the session and clears context. A user who changes model during a difficult fix has to restate the goal, decisions, current edits, and checks.
Evidence: src/commands/slash.ts and the restart branches in src/commands/chat.ts. Cross-model CLI resume already landed in PR #80; this request brings an explicit continuation choice into the console.
Proposed outcome
At an idle boundary, offer “continue this task” or “start fresh” when switching models. Continuation transfers a bounded, inspectable brief: original goal, user constraints, current workspace/revisions, verified changes/checks, and outstanding work. Let the user review or edit it.
Constraints and alternatives
Reuse existing session/handoff provenance and redaction rather than inventing a second memory system. Separate observed tool results from model-written conclusions. Keep unsent drafts and queued entries, with their actual disposition visible.
Local-to-hosted switching changes the inference destination: show the exact brief before sending and carry only context already approved for that destination. Same-model selection should be a no-op. Account/workspace drift cannot silently carry the prior conversation. This is idle-boundary continuation, not live provider failover or automatic replay.
Acceptance
- A two-turn coding fixture switches models and the next turn receives the accepted goal, constraints, actual edits, and outstanding checks without rerunning tools.
- “Start fresh” remains available; cancellation preserves the current session and draft.
- Local↔hosted, account switch, deleted files, changed rules, and a target model with a smaller context window have explicit outcomes.
- The next model receives no raw user-shell history, credentials, hidden reasoning, or unapproved context.
- Tests bind the brief to its source session/workspace, cover truncation honestly, and verify no model call occurs on a cancelled switch.
Priority: P1. Builds on existing resume/handoff support and #277. Source reviewed at ca4180d (0.4.0 candidate). This ticket is an implementation spec; live service qualification remains separate.
Activity
feat(console): continue task across reviewed model switch (#279)
feat(console): continue the current task when switching models (#297)
AetherAI3 commentedon Oct 6, 2026
Implemented and closed in PR #297, merged as
422408fe2b0e87058c377f740cb2be3aa6e89bae(exact tested head9af1e9b02cc9b918b17ff891db00a088c0e7479a).Evidence:
Live hosted model qualification remains separate from this offline implementation and test evidence.