Skip to content

Update Codex hooks schema#5856

Open
Nick2bad4u wants to merge 1 commit into
SchemaStore:masterfrom
Nick2bad4u:update-codex-hooks-schema-subagents
Open

Update Codex hooks schema#5856
Nick2bad4u wants to merge 1 commit into
SchemaStore:masterfrom
Nick2bad4u:update-codex-hooks-schema-subagents

Conversation

@Nick2bad4u

Copy link
Copy Markdown
Contributor

Changes

  • Add the current Codex hook events documented by OpenAI: PreCompact, PostCompact, SubagentStart, and SubagentStop.
  • Add commandWindows, the optional Windows-only command override for command hook handlers.
  • Tighten timeout from any number to a non-negative integer to match Codex's parser.
  • Expand the positive fixture to cover the new events and add a negative fixture for fractional timeouts.

References

Validation

  • npm ci
  • node .\cli.js check --schema-name=codex-hooks.json
  • npx prettier --check src/schemas/json/codex-hooks.json src/test/codex-hooks/hooks.json src/negative_test/codex-hooks/fractional-timeout.json

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

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