opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): add approval command dialog

Open T1mn opened this issue 3 days ago • 3 comments

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

T1mn avatar Jan 12 '26 11:01 T1mn