A send or queued start to a long thread still reads 6–15 s of its history on main (follow-up to #29468)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 12/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- nodejs, sqlite, typescript
- Bereich
- backend, databases, performance
Rechercherichtung
Start with the linked source points at commit a044f0c: readCommandProjection in apps/server/src/orchestration-v2/Orchestrator.ts (~line 1629) and the unfiltered read in startNextQueuedRun (~lines 2261-2272), then the t3_thread_send preflight and post-dispatch reads in apps/server/src/orchestration-v2/ThreadManagementService.ts (~840 and ~892-895). Read the #29468 comment describing the staged-read approach and reproduce against the 49 GB statev2.sqlite clone through the real ProjectionStore reader worker before changing anything. Done means a send and a queued start on the 7k-run threads no longer read full history — roughly the reported local-build numbers instead of ~11-15 s — without changing send/steer semantics.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
#29521 closed #29468, and #36100 narrowed the deferred-steer and cancel reads. On our two coordinator threads, a send and a queued start still read most of the thread's history on main at a044f0c0b3.
Setup: a block clone of our 49 GB statev2.sqlite, read through the real ProjectionStore (reader worker, node:sqlite), read-only, two passes. Thread A has 7,352 runs and thread B 6,886. Our local build was measured on the same clone earlier.
| Read | A / B on main | Our local build |
|---|---|---|
Before a send: readCommandProjection, with #35180's recent-run filter |
6.7–8.6 / 6.5–7.8 s | 1.8–3.1 s |
Before a queued start: the same read without that filter, in startNextQueuedRun |
13.9–14.6 / 11.4–15.6 s | 2.3–2.7 s |
t3_thread_send preflight: all runs and provider turns |
2.2–2.5 / 2.2–2.5 s | 4–6 ms |
t3_thread_send after dispatch: all runs and all user items, to find one message's |
1.9 s on A | not measured |
Where the time goes on thread A, second pass:
- Before a send, 6.4 s:
- finding the last compaction, 1.2 s;
- provider turns, 1.2 s;
- runs, 1.1 s;
- root nodes, subagents, provider threads, and user and error items, 0.7 s each.
- Before a queued start, 11.0 s:
- user messages, 3.0 s;
- nodes, 2.4 s;
- runs, attempts and provider turns, 1.0–1.1 s each;
- turn items, 0.7 s;
- subagents, 0.6 s.
So one t3_thread_send to thread A spends about 11 s in reads, and the send read holds the thread's dispatch lock. A queued start holds the lock for its 11–15 s read before its turn start, which #35723 narrows, even begins.
Our build stages these reads; the #29468 comment describes how, with a link to the code. In short:
- One read transaction loads the thread and its runs, and only the active subagents, sessions, provider threads, requests, scopes and transfers.
- Messages, nodes, attempts, provider turns and items are then read by key, for the runs a send can steer, queue behind or restart.
- The preflight reads only running runs and their running turns.
What remains there is mostly the full runs read, about 1.1 s.
Measured and written by Claude (Opus 5.5) in T3 Code; posted with the owner's approval.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 24.8k
- Forks
- 6.4k
- Ø Merge
- 59 Min.
- Gemergte PRs (30 T.)
- 418
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pingdotgg/t3code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
via-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Question card options show LaTeX as raw source, though the question text renders itEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streamingEvtl. vergeben @juliusmarminge hat das vor 1 Tag übernommen. Offenvouch:denounced
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in pingdotgg/t3code
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pieterjanscheir/belgica#201 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
numerique-gouv/lasuite-landingpage#311 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
oxc-project/tsgolint#1362 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug external xai
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
langchain-ai/langchain#41854 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ready-for-agent
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nemchik/biome-plugin-suitescript#137 ·
Maintainer antworten meist innerhalb von 1 Tag