Let snapshot remove accept a remote-only snapshot's remote key (closes #400) #458

Merged
clawbot merged 3 commits from issue-400-remove-by-remote-key into next 2026-11-17 01:18:20 +01:00
3 Commits
Author SHA1 Message Date
clawbot afcf138c29 Correct snapshot remove --help on remote keys
check / check (push) Successful in 12m50s
The help said a remote key is accepted only on a host with no local
index; a remote-only snapshot's key is accepted on any host.

Model: opus-5-5
2026-11-16 23:38:12 +00:00
clawbot 3af64c829c Remove a local snapshot fully when named by its remote key
snapshot remove treated every remote key as naming a snapshot only on
the destination store. Given the remote key of a snapshot the local
index holds, it deleted the remote metadata and left the local row.
findSnapshotToRemove now returns that snapshot's ID, so it is removed
from both.

Model: opus-5-5
2026-11-16 23:38:11 +00:00
sneak fb33bcf6b1 Let snapshot remove accept a remote-only snapshot's remote key (closes #400)
check / check (push) Failing after 18m27s
snapshot remove hashed its argument into a remote key, so the remote
key that snapshot list shows for a remote-only snapshot never matched.
A remote key or a leading part of it is now resolved with
resolveSnapshotRemoteKey, as snapshot verify and snapshot restore do.

Model: opus-5-5
2026-11-16 23:12:29 +00:00