You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plan-mode approval surface is claude-only: other providers get a read-only run with no way to approve or exit #707
Found in a full provider-feature audit. The plan-approval flow — PlanPrompt card, thread.plan persistence, auto-exit back to default mode — hangs entirely off claude's control_request channel (electron/runner.js:1891-1931, card from detail.pendingPermission at ThreadView.tsx:5760-5763).
Per provider in plan mode:
cursor: --mode plan + no --force is emitted (providers.js:945,957-959), so the read-only run genuinely works — but no approval card ever appears, the mode never auto-exits, and thread.plan is never stored. Closest to fixable.
Approach (this thread): reuse the #647 persisted-card pattern instead of inventing a control channel for other CLIs.
On a successful (or CLI-cancelled) plan-mode turn that never went through Claude's ExitPlanMode prompt, persist thread.pendingPlan from the last assistant text.
getPendingPermission synthesizes the existing PlanPrompt shape, so the renderer and threads.respondPermission stay the same.
Approve stores thread.plan and leaves plan mode; Keep planning dismisses the card and stays in plan. Queued follow-ups wait behind the card so they don't run read-only.
Cursor is the first-class case (--mode plan already works). Grok/kimi/opencode get the same card when a plan-mode turn actually produces text; argv gaps remain #177 / #549.
Implementation is in the worktree and uncommitted.
Cursor/grok plan-mode turns now persist thread.pendingPlan from this turn's assistant text and synthesize the existing PlanPrompt via getPendingPermission. Approve stores thread.plan and leaves plan mode; Keep planning dismisses the card. A stop with no new prose does not invent a card from Run stopped or a previous turn.
Still out of scope here: kimi/opencode dropping --permission-mode (#177), grok headless auto-cancel of asking tools (#549), and live planboard steps from non-claude streams (#180).
Activity
currentbits commentedon Aug 25, 2026
Approach (this thread): reuse the #647 persisted-card pattern instead of inventing a control channel for other CLIs.
thread.pendingPlanfrom the last assistant text.getPendingPermissionsynthesizes the existing PlanPrompt shape, so the renderer andthreads.respondPermissionstay the same.thread.planand leaves plan mode; Keep planning dismisses the card and stays in plan. Queued follow-ups wait behind the card so they don't run read-only.Cursor is the first-class case (
--mode planalready works). Grok/kimi/opencode get the same card when a plan-mode turn actually produces text; argv gaps remain #177 / #549.currentbits commentedon Aug 25, 2026
Implementation is in the worktree and uncommitted.
Cursor/grok plan-mode turns now persist
thread.pendingPlanfrom this turn's assistant text and synthesize the existing PlanPrompt viagetPendingPermission. Approve storesthread.planand leaves plan mode; Keep planning dismisses the card. A stop with no new prose does not invent a card fromRun stoppedor a previous turn.Still out of scope here: kimi/opencode dropping
--permission-mode(#177), grok headless auto-cancel of asking tools (#549), and live planboard steps from non-claude streams (#180).currentbits commentedon Aug 25, 2026
Landed from Solenta thread "Fork: Plan-mode approval surface is claude-only: other provi". Closed on merge.