Skip to content

Add hooks/list app-server RPC#19778

Draft
abhinav-oai wants to merge 6 commits intodev/abhinav/plugin-hooks-discoveryfrom
dev/abhinav/hooks-list-config
Draft

Add hooks/list app-server RPC#19778
abhinav-oai wants to merge 6 commits intodev/abhinav/plugin-hooks-discoveryfrom
dev/abhinav/hooks-list-config

Conversation

@abhinav-oai
Copy link
Copy Markdown
Collaborator

@abhinav-oai abhinav-oai commented Apr 27, 2026

Why

We need a way to list the available hooks (enabled or disabled) to expose via the TUI and App so users can manage their hooks

What

  • Adds hooks/list for one or more cwd values.
  • Returns discovered hook metadata including event, matcher, command, source, plugin metadata, and display order.

Review Notes

The generated schema files account for most of the raw diff, these files have the core change:

  • hooks/src/engine/discovery.rs builds the inventory entries during hook discovery while leaving runtime handlers focused on execution.
  • app-server/src/codex_message_processor.rs wires hooks/list into the app-server flow for each requested cwd.
  • app-server-protocol/src/protocol/v2.rs defines the new v2 request/response payloads exposed on the wire.

Verification

  • Added an app-server integration test covering hooks/list for a discovered user hook.

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 27, 2026
- anomalyco/opencode#24574 ignore: split up reasoning transforms (merge-as-is)
- anomalyco/opencode#24573 fix: vertex anthropic toolStreaming default (merge-as-is)
- openai/codex#19778 hooks/list + hooks/config/write APIs (merge-after-nits)
- openai/codex#19772 permissions: derive config defaults as profiles (merge-after-nits)
@abhinav-oai abhinav-oai changed the title Add hook listing and config APIs Add hooks/list inventory API Apr 27, 2026
…ry' into dev/abhinav/hooks-list-config

# Conflicts:
#	codex-rs/app-server/src/codex_message_processor.rs
@abhinav-oai abhinav-oai changed the title Add hooks/list inventory API Add hooks/list app-server RPC Apr 27, 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.

1 participant