Repository navigation
feat(remote): push desktop directory changes to mobile/web via presence - #53
Merged
Merged
Conversation
When the desktop is offline, show a disconnected empty state with a sleep/disconnect hint and hide the new-conversation FAB. When connected but empty, prompt to create a new conversation with an inline CTA while keeping the FAB. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Dirty-flag catalog tracking in store write paths (threads/workspaces/runs), 1s presence heartbeat with signature compare, light/full snapshot switching, 20s self-heal fallback. Mobile + web onPresence sync directory from full snapshots with self-heal on selected-session deletion. closeConversation also refreshes the list as a backstop. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Co-Authored-By: Claude Haiku 4.5 <[email protected]>
tallcode
enabled auto-merge (squash)
July 27, 2026 09:49
Only used internally via super::util::*; external callers only need take_catalog_dirty. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onPresenceapplies the full snapshot to local sessions/workspaces and self-heals when the selected session is deleted. MobilecloseConversationalso refreshes the list as a backstop.Why
Previously, deleting a conversation or workspace on the desktop left stale entries on mobile and web until reconnect/restart. Presence was the only authorized push channel (NATS permissions are explicit, not wildcarded), so we extended it with a full directory snapshot + signature compare rather than introducing a new subject.
Reviewer notes
evt.>/rep.>/presence).Verification
cd gui/src-tauri && cargo checkpasses.cd mobile && npm run checkpasses (typecheck + lint + prettier + 14 tests).🤖 Generated with Claude Code