You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P1: Scope threads:summaries so opening Agents does not read every transcript #1398
On origin/maine2924af, services.threadSummaries maps every non-trashed thread and calls Store.getLastAssistantMessage for each. On a cache miss, that method synchronously readFileSyncs the thread's transcript shard. Both the selected-thread Recap card and Team view call the all-threads IPC.
The live store has 1,934 message shards totaling 752 MiB. A read-only harness using the real Store.prototype.getLastAssistantMessage through threadSummaries took 2,880 ms for 1,846 returned rows on the first call, versus 2 ms on a repeated cached call. A raw read-only scan took 468 ms warm-cache. This is a main-process block, not a renderer-only delay. No live data was modified.
Fix direction
Scope threads:summaries to the selected thread, its direct crew children, and the parent row the Team view actually displays. The server can filter cheap thread metadata before calling getLastAssistantMessage; Recap needs only the selected id. Reuse the current summary shape and last-assistant memo. Avoid a full-transcript migration or new cache layer.
Acceptance
A cold summaries request for one selected thread reads only the relevant shards, preserves Recap/Team rows and activity text, and no longer blocks the main process for seconds with a large archived history. Include one focused check that counts shard reads for a many-thread fixture and verifies selected crew rows.
Fixed: summaries are scoped by projectId and threadIds (162189a, #1424; services-threads.js:1389), and shard reads are gone (a895b3d). Closing in the 2026-10-09 board cleanup (#1532).
Activity
Scope threads:summaries by project or thread ids (#1398)
Fetch only the needed thread summaries from the inspector (#1398)
Guard crew-integration state against out-of-order async resolution
docs: fix inspector-tabs spec wording for threads:summaries scoping
Inspector performance: scoped summaries, non-blocking crew integration (
currentbits commentedon Oct 9, 2026
Fixed: summaries are scoped by projectId and threadIds (162189a, #1424;
services-threads.js:1389), and shard reads are gone (a895b3d). Closing in the 2026-10-09 board cleanup (#1532).