Skip to content

Conversation

@T1mn
Copy link
Contributor

@T1mn T1mn commented Jan 12, 2026

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
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
Contributor

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

No duplicate PRs found

@T1mn
Copy link
Contributor Author

T1mn commented Jan 12, 2026

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.

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