Skip to content

Fix stale thread route recovery - #170

Merged
redxzeta merged 8 commits into
built-from-scratchfrom
issue-127
Sep 4, 2026
Merged

Fix stale thread route recovery#170
redxzeta merged 8 commits into
built-from-scratchfrom
issue-127

Conversation

@redxzeta

Copy link
Copy Markdown
Owner

Closes #127

Summary

  • gate thread-detail leases to hydrated server threads or registered local drafts
  • atomically clear matching remembered routes after authoritative missing-thread recovery and notify same-window consumers
  • warm route code with TanStack Router chunk-only loading, avoiding route loaders and side effects
  • cover valid, stale, remembered, deleted, and draft-safe recovery paths

Verification

  • npx --yes bun@1.3.12 run --cwd apps/web test -- Sidebar.uiState.test.ts threadDetailSubscriptionRetention.test.ts chatRouteRestore.test.ts chatRouteRecovery.test.ts (33 tests passed)
  • git diff --check
  • targeted local browser startup reached the environment memory ceiling before execution; exact-head GitHub browser checks are required before merge

No deployment or runtime activation is included.

@github-actions github-actions Bot added the size:M 30-99 effective changed lines (test files excluded in mixed PRs). label Aug 30, 2026
@github-actions github-actions Bot added size:L 100-499 effective changed lines (test files excluded in mixed PRs). and removed size:M 30-99 effective changed lines (test files excluded in mixed PRs). labels Sep 3, 2026
@redxzeta
redxzeta force-pushed the issue-127 branch 3 times, most recently from 98a6239 to 7876d25 Compare September 3, 2026 22:10
@redxzeta
redxzeta merged commit 1fabc20 into built-from-scratch Sep 4, 2026
5 checks passed
@redxzeta
redxzeta deleted the issue-127 branch September 4, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recover cleanly from stale thread routes and eliminate root-route preload errors

1 participant