Skip to content

perf(cursor): retain compact turn summaries instead of SDK streams - #270

Merged
aaditagrawal merged 5 commits into
mainfrom
perf/alignment-cursor-history
Sep 5, 2026
Merged

perf(cursor): retain compact turn summaries instead of SDK streams#270
aaditagrawal merged 5 commits into
mainfrom
perf/alignment-cursor-history

Conversation

@aaditagrawal

@aaditagrawal aaditagrawal commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Cursor previously retained every raw SDK event and searched prior turns on each message. Retains a prompt record and a mutable assistant summary per turn, preserving final and partial text/reasoning while continuing to emit every canonical streaming event.

A regression streams 600 chunks across three turns and verifies all 600 emitted deltas and exact final text, with only two retained records per turn. No wall-clock benchmark claim. Cursor and related adapter tests plus workspace check/typecheck passed.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.5 KiB 15.1 KiB
Codex Thread snapshot wire 7.0 KiB 7.3 KiB
Codex Live turn WebSocket wire 6.4 KiB 7.8 KiB
Codex Live turn WebSocket decoded 56.2 KiB 66.4 KiB
Codex Live turn messages 8 21
Claude Total thread wire 13.5 KiB 15.1 KiB
Claude Thread snapshot wire 7.0 KiB 7.3 KiB
Claude Live turn WebSocket wire 6.4 KiB 7.8 KiB
Claude Live turn WebSocket decoded 57.0 KiB 66.4 KiB
Claude Live turn messages 8 21

Baseline: unavailable · PR result: 95435e9 · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 113.9 KiB
  • Claude decoded thread snapshot: 114.6 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

cursoragent and others added 2 commits September 5, 2026 06:41
…nto perf/alignment-cursor-history

Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>
cursoragent and others added 2 commits September 5, 2026 06:49
…nto perf/alignment-cursor-history

Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>
…nto perf/alignment-cursor-history

Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>

aaditagrawal commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

@aaditagrawal
aaditagrawal changed the base branch from fix/alignment-provider-rewind to main September 5, 2026 07:48
@aaditagrawal
aaditagrawal merged commit 53138b2 into main Sep 5, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants