Repository navigation
feat(remote): ring done bell and request attention on remote run finish/failure - #1009
Merged
Merged
Conversation
…sh/failure When a paired host's run finishes or fails, play the same WebAudio bell and request window attention as local runs. The alert is gated by the existing bellOnComplete setting and deduplicated by desktopId+sessionId+runId. Historical end events replayed after a reconnect are suppressed: a run must be seen starting (run_started/agent_start) before its terminal event counts. - Adds useRemoteDoneBell hook subscribed to remote-peer-event. - Reuses playDoneBell and requestUserAttention (new windowAttention helper) so the local and remote paths stay identical. - Adds unit tests covering: single finish, duplicate terminal events, bellOnComplete off, reconnect catch-up, failed runs, non-terminal events, unmount cleanup, multi-run separation, and legacy agent_end without runId. Closes todo_e6289ccd8f09.
huichen
enabled auto-merge (squash)
October 13, 2026 04:06
huichen
added a commit
that referenced
this pull request
Oct 13, 2026
…ay and gaps (#1019) Bring §2.2.2 (The Desktop as a client) back in line with origin/main after the remote-alignment round (#1007, #1009, #1010, #1012, #1013, #1014, #1015, #1017, #1018): - The two "mechanism, not a gap" table rows are gone: the desktop replays with get_events_since (falling back to one whole-page read) and probes get_prompt_receipt on a stored send, both as the phone does. The one remaining mechanism difference -- get_presence on a suspect socket vs. the presence subscription -- is stated in prose. - The capability paragraph names the gains: workspace rename on the phone, and per-host/per-conversation drafts, the stored outbox, the done bell, question navigation, list search and image zoom on the desktop. - The merged-list paragraph describes the pushed catalog: domain-tagged snapshots gated by {epoch, revision}, healed by the presence heartbeat, with a slow per-host read only as the fallback for older hosts. - CONNECTION.zh-CN.md carries the same edits.
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.
Desktop remote client now alerts the user when a paired host's run finishes or fails, reusing the same bell + window-attention path as local runs.