Skip to content

Plan-mode approval surface is claude-only: other providers get a read-only run with no way to approve or exit #707

Closed

Description

@currentbits

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:

Also related: planboard live steps (TodoWrite → savePlanSteps, runner.js:3054-3056) only fire for claude-shaped streams — #180.

Activity

  1. added
    bug
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 25, 2026
  2. currentbits commented on Aug 25, 2026

    @currentbits
    OwnerAuthor

    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.

  3. currentbits commented on Aug 25, 2026

    @currentbits
    OwnerAuthor

    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).

  4. added
    plan:done
    and removed
    plan:doing
    on Aug 25, 2026
  5. currentbits commented on Aug 25, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Plan-mode approval surface is claude-only: other provi". Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions