Repository navigation
fix(server): re-publish running agent activity every 4 minutes so iOS Live Activity never goes stale - #41002
Closed
frickles wants to merge 1 commit into
Closed
fix(server): re-publish running agent activity every 4 minutes so iOS Live Activity never goes stale#41002frickles wants to merge 1 commit into
frickles wants to merge 1 commit into
Conversation
… Live Activity never goes stale The relay sets a 10 minute stale date on every Live Activity push, but the server only published on projected-state changes. A long running or starting thread with no phase change showed "Out of date" on iOS. A 4 minute sweep now re-publishes live running/starting threads with a fresh updatedAt. Waiting phases are excluded because Android keys alerts by phase and time. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
|
Closing this, opened by mistake. Sorry for the noise. |
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.
Problem
The relay sets a 10 minute stale date on every Live Activity push, but the server only publishes when the projected agent state changes. A long running or starting thread with no phase change therefore shows "Out of date" on the iOS Live Activity / lock screen while the agent is still working.
Change
A 4 minute sweep re-publishes live
starting/runningthreads with a freshupdatedAt, which makes the relay push again and renews the stale date. Waiting phases are excluded because Android keys alerts by phase and time, so a fresh time would re-alert. Heartbeat state is cleared on reset.Related: #37391 addresses the same symptom; this version applies cleanly on current
mainand is limited toAgentAwarenessRelay.tsand its test. Happy to close this if that PR is rebased and merged instead.Scope and approval
Small, focused reliability fix for an obvious bug (activity shown as stale while the agent runs); no new setting or UI.
Verification
vp test run src/relay/AgentAwarenessRelay.test.ts: 25 passed, including new tests for the heartbeat sweep.effect-tsgo tsrs --noEmitinapps/server: no errors, none in the changed files.🤖 Generated with Claude Code
Model and harness: Claude Sonnet 5.5, Claude Code.