You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk init --codex --uninstall says "not installed (nothing to remove)" and then "the hook may still be registered" #4589
When the containment guard refuses .codex/hooks.json and nothing else was removed, the report opens with a line that says there is nothing to do and then says the opposite:
W=$(mktemp -d); mkdir -p "$W/proj" "$W/out"; cd "$W/proj"; git init -q .
ln -s "$W/out" .codex; printf '{"hooks":{}}\n' > "$W/out/hooks.json"
rtk init --codex --uninstall; echo "exit=$?"
RTK was not installed for Codex CLI (nothing to remove)
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
A reader who stops at the first line concludes there is nothing to do. When the hook was not checked, the first line should not claim RTK was not installed. codex_uninstall_report in src/hooks/init/codex.rs. Related: #4164 (exit code for the same state).
codex_uninstall_report's opening line says 'nothing to remove' while the body contradicts it, saying the hook may still be registered; fix message ordering/wording in src/hooks/init/codex.rs
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/hooks/init/codex.rs
Suggested Actions
Fix codex_uninstall_report in src/hooks/init/codex.rs to avoid claiming 'not installed' when the hook was never check…
Activity
rtk-wshm-sync-bot commentedon Oct 15, 2026
🔍 Automated Triage
bugmediumSummary
codex_uninstall_report's opening line says 'nothing to remove' while the body contradicts it, saying the hook may still be registered; fix message ordering/wording in src/hooks/init/codex.rs
📁 Relevant files
src/hooks/init/codex.rsSuggested Actions
codex_uninstall_reportin src/hooks/init/codex.rs to avoid claiming 'not installed' when the hook was never check…Triaged automatically by wshm · This is an automated analysis, not a human review.