openai / openai/codex

Import can report success while retaining stale Claude hook wiring

Open
#41,371 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI hooks
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
  1. Import a Claude Code setup that includes project hooks.
  2. Update the source setup so a hook function and its registration are retired.
  3. Keep using the imported Codex project configuration.
  4. Load the current shared validator from the stale imported hook.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.