perf(server): speed up cold desktop launches - #13320
Yash-Singh1 merged 1 commit into
Conversation
- Pin startup migration checks to the created-thread index - Assert both importer queries use that index
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, self-contained SQLite query-plan optimization that forces an existing, migration-created index for two startup import checks. It preserves the queries' logical behavior and has plan coverage confirming the intended index is used. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Cold desktop launches spent time scanning orchestration events during the legacy-thread checks. Use the existing created-thread index for both startup queries.
In four isolated cold launches against the same V2 database snapshot, time to first window reveal improved by 7.3 seconds (66%). This measurement covers cold launches only.
Validation: focused importer tests, lint, and typecheck.
Model and harness: GPT-6 in Codex.