Pilot Shell 11 uninstall.sh cannot finish after a Codex config cleanup failure; a rerun skips the cleanup it still needs
The Pilot Shell 11 uninstaller cannot reach "complete" after its Codex config cleanup fails once, and a rerun does not help.
Environment: macOS, Claude Code and Codex both installed. Script: uninstall.sh on main (the wrapper that fetches the v11.0.8 uninstaller, sha256 eee6e1cf2a20c48af7dd7d4e9470437218591ed5c4f4a54a5d161618973cdc97), run as bash uninstall.sh --yes.
What happened
- The first run printed 44 lines of
Skipped unsafe manifest entry: pilot_hooks/<name>. It then removed 194 files, the Claude Code settings and MCP entries, and the Codex hooks. - It then printed
Malformed Pilot marker pair in ~/.codex/config.toml; preserving fileandCould not safely clean Pilot blocks. The file had a# --- end pilot-shell managed MCP servers ---line with no matching begin line. My copy of the file taken before the uninstall already looked like this, so the uninstaller did not cause it. - It ended with
Pilot Shell was partially uninstalledand kept~/.pilot. - I removed the stale block from
config.tomlby hand and ran the script again. It printedSkipped Codex hook cleanup (ownership baseline missing)andPreserved Pilot baselines and ~/.pilot because cleanup was incomplete.
The first run had already removed the Codex hook ownership baseline, so no later run can finish. ~/.pilot and the .pilot-* baseline files can only be removed by hand.
Expected
- A rerun treats a missing Codex hook baseline as "hooks already removed" and completes, or the first run keeps the baseline until every step has finished.
- When a managed block has an end marker and no begin marker, the output says which lines it would remove, so the user can confirm or edit by hand.
- The
Skipped unsafe manifest entry: pilot_hooks/...lines say what makes an entry unsafe and whether the files remain on disk.
Thanks for reporting this. The uninstaller is now patched directly on main; you can rerun the same uninstall command. No new version is needed.