Repository navigation
Description
Problem
Several J5 screens show a relative age ("33s", "2m") that freezes, because nothing gives the label a clock. With the React Compiler on, each label is cached on its timestamp, so it updates only when something else re-renders:
- Inbox "open" age and the retired-Crew age:
apps/web/src/j5/a2a/HumanInboxPage.tsx(about lines 262 and 375). Frozen for as long as the row is on screen. - Fleet "Last activity":
apps/web/src/j5/fleet/FleetPage.tsx(about lines 570 and 684). Frozen while the Fleet is quiet. - Spawned-child ages in the sidebar:
apps/web/src/j5/threads/SpawnedChildren.tsx(about line 249). - Archive warning age:
apps/web/src/j5/a2a/ArchiveWarningContent.tsx(about line 93).
Plan (Jackson, 2026-10-18): wait for the next upstream advance
Upstream fixed this class of bug in pingdotgg#20814 and pingdotgg#21026 (merged 2026-10-17), adding RelativeTime and useRelativeTimeState. They missed our last advance by a day: we are on nightly 3238, built from a 2026-10-16 commit, and they first ship in nightly 3285 (2026-10-18). Upstream's own sidebar ages freeze the same way until then.
After the next advance, render the ages above through upstream's RelativeTime. Don't add a J5 clock in the meantime.
Done when
- Every age listed above updates on its own while the screen is idle.
- Before/after screenshots or a short video show an idle Inbox or Fleet age advancing.
Closed parts of the original issue
An investigation on 2026-10-18 (j5/main 3a55dfe) found the rest of this issue already resolved:
- Polling stops when one read hangs: mostly fixed by feat(j5): J5's read models follow a change stream, not timers #586. Server change signals and the Refresh button re-read even while a read is in flight. The
Effect.neverwait inpackages/client-runtime/src/state/runtime.tsis upstream's, and it behaves correctly. What's left: focus refresh inapps/web/src/j5/state.ts(about line 117) skips a source while its read is in flight, so a read the server never answers stays stale until something changes or someone presses Refresh. Not worth fixing on its own. - Names and Crew chips read only once: fixed by feat(j5): J5's read models follow a change stream, not timers #586's
j5.reads.subscribeChanges. The Squadron code it named was removed (refactor(web): J5 views read the thread's project, not its Squadron #454, feat(a2a): a thread's home is its project #482). - Timers instead of streams: fixed by feat(j5): J5's read models follow a change stream, not timers #586. No J5 polling timers are left.
Activity
[-]J5 surfaces go stale: relative times without a clock, a stuck read stops polling, and identity is read once[/-][+]J5 relative ages freeze: adopt upstream's RelativeTime after the next advance[/+]Jacksondr5 commentedon Oct 25, 2026
Fixed in #705 (the T3 Code v0.1.3 advance): every age listed here now renders through upstream's
RelativeTime/useRelativeTimeStateor J5'sRelativeAgewrapper, and the PR's video shows an idle Fleet age advancing. Close when #705 merges.