Skip to content

Improve hooks trust flow in TUI#21755

Merged
abhinav-oai merged 13 commits into
mainfrom
abhinav/hooks-review-warning-color
May 9, 2026
Merged

Improve hooks trust flow in TUI#21755
abhinav-oai merged 13 commits into
mainfrom
abhinav/hooks-review-warning-color

Conversation

@abhinav-oai
Copy link
Copy Markdown
Collaborator

@abhinav-oai abhinav-oai commented May 8, 2026

Why

Hooks that need trust review were easy to miss, and the existing TUI flow made users discover /hooks manually before they could decide whether to inspect or trust them.

What

  • add a startup review prompt for new or changed hooks before normal composer use
  • add a top-level t shortcut in /hooks to trust every review-needed hook at once
  • make pending-review rows and helper copy use warning styling

TUI

Startup review interstitial

Hooks need review
2 hooks are new or changed.
Hooks can run outside the sandbox after you trust them.

› 1. Review hooks
  2. Trust all and continue
  3. Continue without trusting (hooks won't run)

Top-level /hooks page when review is needed

Hooks
Lifecycle hooks from config and enabled plugins.

⚠ 1 hook needs review before it can run.

Event                 Installed   Active   Review   Description
PreToolUse            1           0        1        Before a tool executes
...

Press t to trust all; enter to review hooks; esc to close

@abhinav-oai abhinav-oai changed the title Highlight hooks that need review in TUI Improve hooks trust flow in TUI May 8, 2026
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flow looks and feels really good.

Code also looks good, approved! 👍

# Conflicts:
#	codex-rs/tui/src/bottom_pane/hooks_browser_view.rs
@abhinav-oai abhinav-oai enabled auto-merge (squash) May 9, 2026 20:59
@abhinav-oai abhinav-oai merged commit 6d747db into main May 9, 2026
26 checks passed
@abhinav-oai abhinav-oai deleted the abhinav/hooks-review-warning-color branch May 9, 2026 21:17
@github-actions github-actions Bot locked and limited conversation to collaborators May 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants