Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable โ This is a small, self-contained SQLite concurrency bug fix that reuses the existing reader transaction mechanism and adds a regression test for writer contention. Its runtime impact is limited to routing existing windowed snapshots to the reader when available, with the established writer fallback preserved. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. ๐ โน๏ธ Recent review info
๐ Walkthrough
Merge Risk: โช Minimal ยท up to
|
b0493ba to
135b85c
Compare
โฆnstall (pingdotgg#22855) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆingdotgg#21872) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
โฆ.7 to 17.10 answer (pingdotgg#21909)
โฆs AGENTS.md (pingdotgg#22848) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆof a usage limit (pingdotgg#22596)
โฆ shell (pingdotgg#22856) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆt found" (pingdotgg#22850) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆt for 3 minutes (pingdotgg#22903) On desktop, an abandoned browser sign-in blocked every T3 Connect sign-in for 3 minutes. A new attempt now replaces the stale Clerk flow, and a Cancel bar resets the sheet. Takeover of pingdotgg#22708. Co-authored-by: steve-ai-vibe <steve.ai.vibe@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
โฆcharacter catalog dump (pingdotgg#22889) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
โฆs junctions point to (pingdotgg#21099) Co-authored-by: sheehanmunim <80079528+sheehanmunim@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
โฆngdotgg#22730) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆtgg#22686) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
pingdotgg#22546) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆverrides (pingdotgg#23037) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆuests (pingdotgg#23034) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆsed (pingdotgg#23170) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆngdotgg#23096) Co-authored-by: Vishal <vishalprashantdoshi@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Vishal Doshi <vdoshi96@users.noreply.github.com>
โฆingdotgg#23361) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆingdotgg#23106) Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Nikita Maximilian Grimm <github@nikitagrimm.de> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆtch (pingdotgg#23023) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆ Activities (pingdotgg#23327) Fixes pingdotgg#15682. Takes over pingdotgg#23035. Co-authored-by: Taylor Dolezal <onlydole@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
โฆgg#23117) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆingdotgg#23124) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
pingdotgg#23389) Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
โฆdesktop updates (pingdotgg#23113) Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
pingdotgg#23454) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Failing regression test for pingdotgg#21840. getThreadSnapshotWindow runs in a writer transaction, so a held writer makes the snapshot fail with "database is locked" instead of reading the committed thread. Test taken unchanged from pingdotgg#21869 by ScottN-PV. Co-Authored-By: ScottN-PV <191782757+ScottN-PV@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
โฆriter getThreadSnapshotWindow ran its reads in a writer transaction, so a held writer made opening a thread fail with "database is locked". Run the transaction on the reader with NodeSqliteClient.readOnly, as ShellStream and ThreadSearch already do. The snapshot only reads, and inside an open write transaction the reads still use the writer. Fixes pingdotgg#21840. Implementation from pingdotgg#21869 by ScottN-PV. Co-Authored-By: ScottN-PV <191782757+ScottN-PV@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Closing: current main already covers this as of 6ed47b538c. If you still see it on a build that includes that commit, reply and we'll reopen. |
Problem
Opening a thread reads its bounded snapshot inside a writer transaction, so a long snapshot blocks thread creation, message dispatch, and other database writes. A file-backed WAL reproduction fails on main when another connection holds the writer.
Change
Route the entire bounded snapshot transaction through the existing SQLite reader helper. Anchor lookup, fork-parent projections, and snapshot sequence stay in one consistent transaction. Preserve the contributorโs implementation and regression test from this PR; the updated branch also includes current main.
Scope and approval
Fixes #21840
GitCafe: https://git.cafe/pingdotgg/t3code/issues/21840
Triaged bug via the automated issue flow. Accepted bug. Scope is bounded snapshot reader routing; query indexing and other projection reads are separate work.
Verification
windowed snapshots return committed data while the writer is heldfails with โsnapshot must return while another connection holds the writerโ; the cause is SQLite writer lock contention.vp test run src/orchestration-v2/ProjectionStore.test.ts src/orchestration-v2/ThreadSearch.test.tspasses 37 tests; sharedvp test run src/nodeSqliteClient.test.tspasses 16 tests.writeron main toreaderwith the fix.Runtime excerpt (both enclosing bounded requests succeeded):
This server-only change has an empty visual fixture matrix. No render paths or wire contracts changed. The reporterโs 10 GB cold-cache latency was not reproduced; no latency improvement is claimed.
Model: GPT-6.1-Sol and Claude Opus 5.5. Harness: Codex and Claude Code.