Repository navigation
fix(cursor): release checkpoint memory with SDK 1.5.0 - #42404
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: 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. |
…atch-audit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Walkthrough
Pre-merge checks:
|
Problem
Cursor SDK 1.4.2 retained checkpoint buffers after workspace sessions closed. Open a workspace, load its checkpoint, close it, and repeat to reproduce the retained memory after GC.
Change
Upgrade to Cursor SDK 1.5.0 and use its shell-output events, attribution settings, and run-event persistence opt-out. Keep explicit SQLite store disposal and worker isolation. Carry forward T3's native resume, background shell ownership, startup progress, and immediate model refresh patches.
Scope
This PR follows the maintainer's Cursor SDK upgrade audit. The memory repro records the bug directly. The shell output, attribution, persistence, and patch changes preserve the existing Cursor integration on the upgraded SDK.
Verification
vp run check:changed origin/mainand 256 focused tests passed locally. CI passed at49aa5a2, including Release Smoke.Generated by GPT 6.2 Sol in T3 Code through Codex.