pilot-shell icon indicating copy to clipboard operation
pilot-shell copied to clipboard

Pilot Shell 11 uninstall.sh cannot finish after a Codex config cleanup failure; a rerun skips the cleanup it still needs

Open ianrios opened this issue 1 month ago • 1 comments

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

  1. 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.
  2. It then printed Malformed Pilot marker pair in ~/.codex/config.toml; preserving file and Could 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.
  3. It ended with Pilot Shell was partially uninstalled and kept ~/.pilot.
  4. I removed the stale block from config.toml by hand and ran the script again. It printed Skipped Codex hook cleanup (ownership baseline missing) and Preserved 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.

ianrios avatar Nov 04 '26 05:11 ianrios

Thanks for reporting this. The uninstaller is now patched directly on main; you can rerun the same uninstall command. No new version is needed.

maxritter avatar Nov 04 '26 07:11 maxritter