Summary
If a backup file is removed after a swap — tmpreaper, a manual clean, a wiped /tmp — revert fails on that entry and leaves it in the state file. Every later revert fails the same way, forever. There is no subcommand to forget an entry, so the state file has to be edited by hand.
Reproduction
run use-local --repo "$PWD" --cli cursor --no-preflight
rm -f "$SB/.cursor/"*.bak.mcp-swap-*
Expected
A missing backup is unrecoverable, so say so once and drop the entry — or offer a way to drop it. The config is already in whatever state the swap left it; keeping the entry does not help anyone.
Actual
Both runs print the same line and exit non-zero. The entry is never cleared:
[cursor] backup missing: <sandbox>/.cursor/mcp.json.bak.mcp-swap-20260809204121
References
Summary
If a backup file is removed after a swap — tmpreaper, a manual clean, a wiped
/tmp—revertfails on that entry and leaves it in the state file. Every laterrevertfails the same way, forever. There is no subcommand to forget an entry, so the state file has to be edited by hand.Reproduction
Expected
A missing backup is unrecoverable, so say so once and drop the entry — or offer a way to drop it. The config is already in whatever state the swap left it; keeping the entry does not help anyone.
Actual
Both runs print the same line and exit non-zero. The entry is never cleared:
[cursor] backup missing: <sandbox>/.cursor/mcp.json.bak.mcp-swap-20260809204121References
_cmd_revertmissing-backup branch atv0.1.0a20