Import can report success while retaining stale Claude hook wiring
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What happened
Codex CLI /import reported success when importing a Claude Code setup, but the converted Codex hook wiring retained a stale hook snapshot. The source setup later removed a validator function and its current hook caller, while the imported Codex hook still called the deleted symbol. A valid Stop event then failed with an AttributeError.
Reproduction shape
- Import a Claude Code setup that includes project hooks.
- Update the source setup so a hook function and its registration are retired.
- Keep using the imported Codex project configuration.
- Load the current shared validator from the stale imported hook.
- Trigger the affected hook event.
The imported configuration can still invoke the retired call even though the current source wiring no longer does.
Expected behavior
Import should perform Codex-specific post-conversion validation before reporting success. At minimum it should verify that converted hook registrations resolve, imported hook modules load against current shared dependencies, and unsupported or stale Claude-specific wiring is removed or reported as a partial import with actionable items.
Actual behavior
Import completed successfully, but the stale converted snapshot later blocked a valid workflow. There was no import-time warning that the resulting Codex configuration was not live-compatible.
Environment
- Codex CLI 0.150.1
- Source: Claude Code project customization
- Target: Codex CLI project customization
This report is intentionally reduced to the compatibility pattern and contains no private project paths or credentials.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Codex CLI /import entry point and trace project-hook conversion and the validation performed before success is reported. Inspect how converted hook registrations and shared validator dependencies are loaded. Done means stale or unsupported wiring is removed or reported with actionable import feedback before the import succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100