Skip to content

Permission mode picker is a no-op or silent downgrade on grok, kimi, opencode and cursor #177

Closed

Description

@currentbits

Problem

The composer's permission mode picker is only real on claude; on the other providers it silently does nothing or downgrades:

  • claude is the only provider with --permission-prompt-tool stdio, routing prompts to the UI (electron/providers.js:117-131).
  • grok silently maps the asking modes (default, acceptEdits) to non-prompting auto (providers.js:266-277).
  • kimi emits no permission flag at all; tools run unprompted regardless (providers.js:470-475, known UI debt from docs/ISSUES.md:121).
  • opencode's buildArgs does not even accept permissionMode (providers.js:393); the CLI has --auto for auto-approving non-denied permissions.

The Composer shows the permission pill unconditionally (src/components/Composer.tsx:1385), with no provider awareness. PRODUCT-SPEC promised modes "enforced in adapter invocation"; BRAINSTORM bet #3 was "permissions are a mode, not a popup storm."

Impact

A user picking "Ask" or "Read-only" on 4 of 5 providers gets a control that does nothing: a safety-relevant UI lie, not just a missing feature.

Fix direction

Per-provider permission capability mapping (like reasoning effort): implement what each CLI supports (opencode --auto, codex --sandbox per the sandbox issue, grok flags), and disable or annotate the pill where a mode cannot be honored instead of silently ignoring it.

Activity

  1. added
    bug
    plan:todo
    on Aug 16, 2026
  2. changed the title [-]Permission mode picker is a no-op or silent downgrade on grok, kimi and opencode[/-] [+]Permission mode picker is a no-op or silent downgrade on grok, kimi, opencode and cursor[/+] on Aug 25, 2026
  3. currentbits commented on Aug 25, 2026

    @currentbits
    OwnerAuthor

    Provider audit confirmed cursor is the same class: buildArgs maps every non-plan mode to identical argv -p --stream-partial-output --trust --force --approve-mcps (electron/providers.js:944-959), so default == acceptEdits == bypassPermissions and "Default" silently means full-auto. Cursor additionally has no control channel at all (stdio: ["ignore", ...], electron/cursor.js:394-397). Plan-mode approval UX gap split out into #707; guardrail-interception gap (kimi) in #697.

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

    @currentbits
    OwnerAuthor

    Implementation on coder/fork-permission-mode-picker-is-a-no-op-o-2636b7 treats permission modes like reasoning effort: each adapter lists only the modes it actually honours, the composer offers those (and annotates a leftover stored mode instead of silently ignoring it), and setPermissionMode rejects the rest.

    What each CLI can actually send

    Provider Honoured modes Adapter
    claude Ask / Accept edits / Plan / Full access --permission-mode + --permission-prompt-tool stdio
    codex all four --sandbox read-only / workspace-write / danger-full-access
    grok Plan, Full access leftover Ask/Accept remap to bypassPermissions --always-approve so the run does not die (#549)
    opencode Ask, Full access --auto only for Full access
    cursor Plan, Full access --mode plan without --force; everything else is --force
    kimi Full access only no flag (-p cannot combine with -y/--auto); pill locked

    Provider switches, forks, teach-mode start, and profile apply snap an unhonoured stored mode instead of copying the lie. Plan-mode approval UX on non-claude providers remains #707.

  6. added
    plan:done
    and removed
    plan:doing
    on Aug 25, 2026
  7. currentbits commented on Aug 25, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Permission mode picker is a no-op or silent downgrade ". 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