Cancel superseded client read requests - #199
Merged
ymichael merged 2 commits intoJun 17, 2026
Merged
Conversation
ymichael
force-pushed
the
bb/investigate-timeline-request-performance-thr_rvb4aw4ib7
branch
from
June 17, 2026 19:16
33ed18e to
029da06
Compare
ymichael
deleted the
bb/investigate-timeline-request-performance-thr_rvb4aw4ib7
branch
June 17, 2026 19:20
SawyerHood
added a commit
that referenced
this pull request
Jun 17, 2026
…read-cancel #199) Resolve conflicts and reconcile our automations migration with main's hand-authored thread-search migrations: - Backfill drizzle snapshots for main's hand-authored 0039_thread_search and 0040_thread_search_rowid_fts (replayed via drizzle-kit against main's schema, preserving main's FTS SQL); regenerate our automations migration as 0041_add_automations with its own snapshot. Full snapshot chain now intact. - migration-journal.test.ts: add a CI guard that every journal entry has a snapshot and the prevId chain is unbroken (prevents snapshot-less hand-authored migrations from recurring). - migrate.test.ts: keep both cleanup paths in the thread-provenance rewind; add resetMigrationsAfterThreadSearch so the thread-search replay tests stay valid now that a migration (automations) lands after thread search. - AppSidebar.tsx / ProjectList.tsx: keep both main's thread-search UI and our Automations nav entry. - CLI timeline fixtures: add systemMessageKind/systemMessageSubject (required on the user conversation row since #192). - pnpm install for main's new remark-breaks dependency. Verified: turbo build typecheck lint test --force --continue -> 69/69 tasks pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Context
The attached HAR showed
GET /api/v1/threads/thr_a8eyut82sq/timelinefiring 25 times in 36s, transferring 43.4 MB with up to 10 concurrent downloads. The existing query invalidations could supersede old timeline data, but the request itself kept downloading because the query function did not consume React Query'ssignal.Validation
pnpm exec turbo run test --filter=@bb/apppnpm exec turbo run typecheck --filter=@bb/appgit diff --check