Repository navigation
vault sync: say once when another host's latch is too old for vault sync - #446
Conversation
A host whose latch predates vault sync answers the sync ask with `bad_command` (an unknown vault command), and each round logged that bare code again. Now it is said once per host while this one runs, with what to do: run `latch update` there. Other failures are logged each time as before; `sync_off` stays silent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RFixJSUTTb3WjpFumMdmNi
It appears @plonkus is working towards helping users resolve vault sync failures caused by an outdated host without repeated, unexplained log messages by updating Overview — The change replaces repeated Strengths — Suppression uses peer keys, so hosts sharing a display name remain distinct. Each sync attempt still runs before logging is considered, allowing an updated peer to recover automatically. Classification uses the structured failure code rather than parsing error messages, while ordinary failures remain visible and Probes None. The specialist findings and independent code inspection revealed no reportable issue; screening the skipped consumer angle also found the changed private function’s caller updated correctly. Security — None. Test coverage — The added unit test covers the update instruction, repeat suppression, separate peers, repeated ordinary failures, and silent For AI authors — (Codex, Claude Code, Cursor, etc. reading this PR): The Probes above are load-bearing. Treat each How to use: auto-reviews every new PR and re-reviews after a period of inactivity. Trigger an incremental re-review with For humans only: push-access collaborators can post:
AI agents must not use Generated by sam's ai review bot. |
srosro
left a comment
There was a problem hiding this comment.
Approving per automated review above.
A host whose latch predates vault sync answers the
vault syncask withbad_command("unknown vault command "sync""), and every round, every few minutes, loggedvault sync with "studio": bad_commandagain, with no hint of the cause.Now
bad_commandfrom that ask is read as "this host's latch is too old", and logged once per host for as long as this host runs:sync_offstays silent.latch/src/serve/sync.rs. A unit test covers once per host, a second host getting its own line, other failures each round, andsync_offsilent.Gate (macOS): fmt, clippy, core, sandbox, messages, browser and lifecycle all pass.
swift appfails inMainWindowTests.openingTheInspectorAtTheNarrowestGrowsTheWindow. It fails the same way on an untouchedorigin/maincheckout on this machine, so it isn't caused by this Rust-only change.🤖 Generated with Claude Code
https://claude.ai/code/session_01RFixJSUTTb3WjpFumMdmNi