Skip to content

perf(trajectory): bound live stream persistence overhead - #558

Merged
jubaoliang merged 1 commit into
developfrom
fix/trajectory-performance
Sep 3, 2026
Merged

perf(trajectory): bound live stream persistence overhead#558
jubaoliang merged 1 commit into
developfrom
fix/trajectory-performance

Conversation

@jubaoliang

@jubaoliang jubaoliang commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • aggregate assistant/tool stream snapshots in memory and persist at boundaries instead of every token
  • throttle live snapshots, bound subscriber queues, and cache/throttle metrics aggregation
  • record context references instead of duplicating prompt and workspace content
  • preserve final usage across tools/cancellation and harden SSE resume
  • document trajectory APIs and cap list summaries

Verification

  • make all — 2891 passed, 8 skipped
  • pre-commit (make precommit) — 2891 passed, 41 skipped
  • targeted trajectory unit/integration suite — passed
  • Ruff and strict mypy — passed

Co-authored-by: Cursor <cursoragent@cursor.com>
@jubaoliang
jubaoliang merged commit 2124c32 into develop Sep 3, 2026
3 checks passed
@jubaoliang
jubaoliang deleted the fix/trajectory-performance branch September 3, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants