Skip to content

fix: bundle native Codex graph context hooks - #137

Merged
docwilde merged 1 commit into
mainfrom
fix/codex-graph-hooks
Nov 13, 2026
Merged

docwilde merged 1 commit into
mainfrom
fix/codex-graph-hooks

Conversation

@docwilde

Copy link
Copy Markdown
Owner

Codex now retrieves opted-in graph context at startup and on every prompt, including the first. Graph failures preserve the curated startup snapshot, and prompt retrieval does not schedule review or indexing.

For agents
  • codex/hooks/hooks.json bundles native SessionStart and UserPromptSubmit handlers, including startup on fork.
  • The native Codex prompt adapter returns graph context before review, live indexing, or memory-refresh scheduling. Startup uses the declared hook engine for freshness instructions and treats graph errors as optional context failures.
  • Regression fixtures cover first-prompt retrieval without a session stamp, graph budgets, citation labels, opt-in and disable switches, unavailable graph context, unchanged curated memory and beliefs, and absent review/refresh schedules.
  • Negative controls reproduce the missing prompt manifest, startup graph omission, first-prompt refusal, review scheduling, and incorrect engine instructions. Mutating graph error handling and the injection guard makes their regression tests fail.
  • Validation: full native workspace suite; all 41 Python test files; 11 Python/native interoperability checks; native launcher smoke test; shell syntax and release-version consistency checks.
  • Runs using shared /tmp encountered failures in existing pending-scope and dry-run fixtures. The final native gate uses a private temporary directory, matching CI.
  • Version: 0.62.29 across the plugin, marketplace, native crate, and lockfile. README, native-core documentation, and changelog describe the bundled hooks and update requirements.

@docwilde
docwilde merged commit 8db708b into main Nov 13, 2026
3 checks passed
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