Skip to content

fix(init): don't say Codex was not installed when the hook was not checked - #4601

Open
TheNetherWatcher wants to merge 1 commit into
rtk-ai:developfrom
TheNetherWatcher:fix/codex-uninstall-unchecked-header
Open

TheNetherWatcher wants to merge 1 commit into
rtk-ai:developfrom
TheNetherWatcher:fix/codex-uninstall-unchecked-header

Conversation

@TheNetherWatcher

Copy link
Copy Markdown

Summary

  • When the containment guard refuses .codex/hooks.json and nothing else was removed, codex_uninstall_report now opens with RTK removed nothing for Codex CLI instead of RTK was not installed for Codex CLI (nothing to remove), so the first line no longer contradicts the "Not checked ... may still be registered" block under it.
  • The plain "not installed" header is unchanged when nothing was removed and the hook was checked.

Fixes #4589

Test plan

RTK removed nothing for Codex CLI
  Not checked: the Codex hook in .codex/hooks.json, which may still be registered:
    .codex/hooks.json resolves to <W>/out/hooks.json, outside the project at <W>/proj.
    Remove the symlink, or use --global to configure Codex outside the project.
exit=0

The exit code for this state is #4164 / #4463 and is left alone here.

@CLAassistant

CLAassistant commented Oct 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added bug Something isn't working codex init labels Oct 16, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Fixes a misleading message in codex_uninstall_report: when the containment guard refuses .codex/hooks.json and the hook was never checked, RTK previously claimed 'RTK was not installed for Codex CLI', contradicting the subsequent 'Not checked ... may still be registered' notice. The header now reads 'RTK removed nothing for Codex CLI' in that unchecked case, while the normal 'not installed' header is preserved when the hook was actually checked and nothing was removed.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #4589


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working codex init

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk init --codex --uninstall says "not installed (nothing to remove)" and then "the hook may still be registered"

2 participants