Skip to content

Edit a command in the permission card before approving it #509

Closed

Description

@currentbits

Source: research round 18, stolen from Devin Local (changelog 2026-07-29, docs.devin.ai/desktop/changelog).

Devin's permission cards let you click the command to edit it before approving, plus a "wand" action that takes a plain-language change request and has a fast model rewrite the command for your review.

Why this matters for Solenta: today the answer set is approve / reject / allow-always (#477, #479). Real-world approvals are often "yes, but": the agent proposed rm -rf dist && npm build and you want to approve only npm build. Editing in place is faster than rejecting and re-prompting, and it teaches the adapter nothing spurious.

Scope:

Pairs with #291 (unified approval inbox) since edited-approve must work from the inbox too.

Activity

  1. added and removed on Aug 18, 2026
  2. currentbits commented on Aug 20, 2026

    @currentbits
    OwnerAuthor

    Implemented on coder/fork-edit-a-command-in-the-permission-ca-0b8a50.

    v1 (no wand):

    • Bash/shell permission cards show the proposed command in an editable field. Accept / Accept all run whatever is in the field.
    • threads.respondPermission takes updatedCommand. The runner merges it into command/cmd/script only, so Edit/Write cannot grow a command by accident. Empty edits throw without consuming the prompt.
    • Transcript event records both sides: Allowed (edited): rm -rf dist && npm build → npm build.
    • Allow-always after an edit keys Claude addRules.ruleContent on the edited prefix (npm build:*), never the original and never whole-tool. Unedited Accept all is still whole-tool — that's Allow-always is a command prefix, not the whole tool #479.

    Inbox (#291) should call the same IPC with threadId + updatedCommand; PermissionPrompt in ThreadView is the card to extract.

  3. added and removed on Aug 20, 2026
  4. currentbits commented on Aug 20, 2026

    @currentbits
    OwnerAuthor

    Shipped in this thread: editable command on the permission card, original+edited audit event, allow-always after edit keys the edited prefix. Wand rewrite left for a follow-up.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions