mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
The pin bridge only ever pushed: localStorage to the backend, never back. Two apps on the same gateway each kept their own localStorage, so a pin made on the Mac never appeared on the Windows app. Now that a pinned row is guaranteed to be in the page, its absence says nothing about its pin state — which makes the server row authoritative. `pullRemotePins` adopts pins this app hasn't seen and drops local pins the server says are gone, keying on the durable lineage root so a pin survives compression tip rotation. Adopted pins are recorded as already mirrored rather than echoed back as a redundant write. A list request in flight when we PATCH still carries the old value, so honouring it would silently undo the pin the user just made. Writes are guarded for the lifetime of their own request — no timers, no wall-clock windows. A runtime predating the flag sends no `pinned` at all; that's treated as no opinion and leaves the local set alone. Co-authored-by: webtecnica <75556242+webtecnica@users.noreply.github.com> Co-authored-by: Kyzcreig <9063726+Kyzcreig@users.noreply.github.com> Co-authored-by: aman-merchant <274313970+aman-merchant@users.noreply.github.com> Co-authored-by: rerdi92 <76791321+rerdi92@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||