Skip to content

fix(web): reload after server restarts - #21

Merged
asfires merged 1 commit into
mainfrom
t3code/reload-on-server-restart
Aug 12, 2026
Merged

asfires merged 1 commit into
mainfrom
t3code/reload-on-server-restart

Conversation

@asfires

@asfires asfires commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Open web clients quietly reconnect after a server restart but keep running the stale frontend bundle until a manual refresh.

The client now tracks the lifecycle ready timestamp (replayed to every new subscription) as a per-boot identity and reloads the page exactly once when it changes. Same-boot reconnects (network blips, sleep/wake) are unaffected. Typed drafts survive the reload via the persisted composer draft store.

Verified live in the review worktree: backend bounce triggered a single automatic tab reload, no re-pair needed. Tests: serverBootReload (same-boot / changed-boot / repeated-delivery), AppRoot, client-runtime ready projection — 91 passing across touched suites; both typechecks clean.

Open web clients could quietly reconnect after a server restart while continuing to run the stale frontend bundle.

Track the replayed lifecycle ready timestamp for the page lifetime and reload once when it changes, while preserving same-boot reconnect behavior.

Model: GPT-5

Harness: Codex
@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 12, 2026
@asfires
asfires merged commit 2fd2c14 into main Aug 12, 2026
6 of 11 checks passed
@asfires
asfires deleted the t3code/reload-on-server-restart branch August 12, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant