GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(relay): Quiet running work stays current on the phone's agent activity card by mwolson · Pull Request #130 · mwolson/t3code

Conversation

@mwolson

@mwolson mwolson commented Nov 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Problem

The agent activity card on a phone goes "Out of date" while the agent is still working. The server publishes a thread's activity only when its state changes, and the relay sends a Live Activity update only when the card differs from the last one it delivered. A turn that stays "Working" for more than ten minutes gets no push, so the card passes its ten-minute stale date and shows every active row as out of date. After two hours without a publish the relay also expires the thread's row as if the environment had died, which ends the card, and a card can only be started again from the foreground. In a week of one relay's delivery records, a live card went more than ten minutes between pushes up to 22 times.

Change

The server now repeats a starting or running thread's state every three minutes, stamped with a heartbeatAt time. The relay carries that time on the thread's card row, so the card differs from the last delivery and is sent again with a fresh stale date, and it measures a running row's two-hour expiry from the heartbeat, including the expiry it gives the Android notification. "Out of date" then means the environment stopped reporting. Row order and each row's own timestamp are unchanged, since those follow the thread's last state change.

Only starting and running threads repeat. Threads waiting for approval or input, and finished ones, do not, so a card whose only rows are waiting still goes out of date. Heartbeats raise no alert: upstream already picks a push's alert from the published state, so starting and running publishes stay silent (pingdotgg#15015 relay-push-spam).

heartbeatAt is optional in the publish contract. An older relay ignores it and behaves as before, and an older server simply sends none. Each running thread costs one publish and one low-priority push every three minutes.

Scope

Bug fix: healthy quiet work is shown as out of date and its card ends after two hours. No upstream issue reports it yet; the closest upstream work (pingdotgg#26261 live-activity-desktop-parity, pingdotgg#35318 widget-background-refresh) does not renew a running row.

Verification

Run on zbook26. The server test "reports quiet running work again, and stops once the run completes" checks that a quiet running thread is published again every three minutes across the ten-minute window with a new heartbeat and its original timestamp, and that the repeats stop once it completes. The relay test "keeps a quiet row alive on its heartbeat, on the card and in Android's expiry" checks that a row with a recent heartbeat survives past the two-hour expiry, carries the heartbeat on its card row and moves the Android expiry. Both fail with the production change reverted. Existing server tests that count publishes leave heartbeats out, and upstream's snooze assertion now allows them. The 29 focused server tests and the relay publisher tests pass.

Not checked against a live relay and phone.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mwolson
mwolson added this pull request to stack #131 November 13, 2026 22:17
@mwolson
mwolson removed this pull request from stack #131 November 15, 2026 20:21
@mwolson
mwolson force-pushed the contrib/agent-activity-heartbeat branch from 07cc9ef to 6a909f2 Compare November 15, 2026 20:22
@mwolson
mwolson added this pull request to stack #132 November 15, 2026 20:22
@mwolson
mwolson removed this pull request from stack #132 November 15, 2026 22:41
@mwolson
mwolson force-pushed the contrib/agent-activity-heartbeat branch from 6a909f2 to f4cc1c6 Compare November 15, 2026 22:42
@mwolson
mwolson added this pull request to stack #134 November 15, 2026 22:42
@mwolson
mwolson removed this pull request from stack #134 November 16, 2026 20:47
@mwolson
mwolson added this pull request to stack #136 November 16, 2026 20:47
@mwolson
mwolson removed this pull request from stack #136 November 16, 2026 23:02
@mwolson
mwolson added this pull request to stack #138 November 16, 2026 23:03
@mwolson
mwolson removed this pull request from stack #138 November 18, 2026 16:28
@mwolson
mwolson added this pull request to stack #142 November 18, 2026 16:28
@mwolson
mwolson removed this pull request from stack #142 November 19, 2026 19:30
@mwolson
mwolson added this pull request to stack #144 November 19, 2026 19:31
@mwolson
mwolson removed this pull request from stack #144 November 20, 2026 22:48
@mwolson
mwolson force-pushed the contrib/agent-activity-heartbeat branch from f4cc1c6 to 2d7abe6 Compare November 20, 2026 22:49
@mwolson
mwolson added this pull request to stack #145 November 20, 2026 22:50
@mwolson
mwolson removed this pull request from stack #145 November 21, 2026 02:41
@mwolson
mwolson added this pull request to stack #147 November 21, 2026 02:41
@mwolson
mwolson removed this pull request from stack #147 November 21, 2026 20:44
@mwolson
mwolson added this pull request to stack #150 November 21, 2026 20:46
@mwolson
mwolson removed this pull request from stack #150 November 21, 2026 21:02
@mwolson
mwolson added this pull request to stack #153 November 21, 2026 21:02
@mwolson
mwolson removed this pull request from stack #153 November 22, 2026 04:49
@mwolson
mwolson added this pull request to stack #155 November 22, 2026 04:50
@mwolson
mwolson removed this pull request from stack #155 November 23, 2026 15:21
@mwolson
mwolson added this pull request to stack #157 November 23, 2026 15:21
@mwolson
fix(relay): Quiet running work stays current on the phone's agent act…
e27c9f9
…ivity card

The server publishes a thread's activity only when it changes, and the relay
sends a card only when it differs from the last one. A healthy turn that stays
"Working" therefore got no push, so the iOS card showed "Out of date" after ten
minutes, and the relay dropped the thread's row, ending the card, after two
hours. The server now repeats a starting or running thread's state every three
minutes with a heartbeat time. The relay carries the heartbeat on the thread's
card row, which sends the card again, and measures the row's expiry from it,
for the Android notification too.
@mwolson
mwolson removed this pull request from stack #157 November 23, 2026 19:20
@mwolson
mwolson force-pushed the contrib/agent-activity-heartbeat branch from 2d7abe6 to e27c9f9 Compare November 23, 2026 19:21
@mwolson
mwolson added this pull request to stack #159 November 23, 2026 19:22
@mwolson
mwolson removed this pull request from stack #159 November 24, 2026 17:26
@mwolson
mwolson added this pull request to stack #161 November 24, 2026 17:27

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@mwolson
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.