Skip to content

feat(tui): add approval command dialog#7981

Closed
T1mn wants to merge 1 commit into
anomalyco:devfrom
T1mn:feat/tui-approval
Closed

feat(tui): add approval command dialog#7981
T1mn wants to merge 1 commit into
anomalyco:devfrom
T1mn:feat/tui-approval

Conversation

@T1mn

@T1mn T1mn commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@T1mn

T1mn commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

Many Codex CLI users are already used to /approval for permissions, so this keeps the transition to opencode smooth and familiar.
I’m not sure who will be reviewing this, if you spot anything that feels off, I’d really appreciate the feedback. I believe this should be a positive usability improvement, but I’m happy to adjust as needed.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there no /approval equivalent in the TUI?

1 participant