[PR #7981] feat(tui): add approval command dialog #12581

Open
opened 2026-02-16 18:17:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7981

State: open
Merged: No


What does this PR do?

Fixes #7726

  • Adds a /approval command in the TUI with an allow/ask/reject dialog.
  • Surfaces the command in / autocomplete and the command palette.
  • Stores the session-level approval rule via session.update (SDK/OpenAPI synced).
  • For longer flows, repeated “ask” prompts can break the rhythm and waste time; /approval lets users adjust permissions on the fly to keep work moving.

How did you verify your code works?

  • Built and ran the TUI locally.
image

Allow:

image

Ask:
image

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7981 **State:** open **Merged:** No --- ### What does this PR do? Fixes #7726 - Adds a /approval command in the TUI with an allow/ask/reject dialog. - Surfaces the command in / autocomplete and the command palette. - Stores the session-level approval rule via session.update (SDK/OpenAPI synced). - For longer flows, repeated “ask” prompts can break the rhythm and waste time; /approval lets users adjust permissions on the fly to keep work moving. ### How did you verify your code works? - Built and ran the TUI locally. <img width="370" height="162" alt="image" src="https://github.com/user-attachments/assets/7cdbcfe5-604c-4c67-84ca-b30effd86032" /> Allow: <img width="380" height="120" alt="image" src="https://github.com/user-attachments/assets/b557d356-b126-4195-b6e5-1708148ce85c" /> Ask: <img width="374" height="243" alt="image" src="https://github.com/user-attachments/assets/1ab70360-d861-4f29-b572-3135a47f6bca" />
yindo added the pull-request label 2026-02-16 18:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12581