Skip to content

Adopt upstream #3669: Cursor ACP thread rendering, thought output, cancel delivery#13

Merged
justingray0 merged 1 commit into
mainfrom
feat/adopt-cursor-acp-rendering-3669
Jul 4, 2026
Merged

Adopt upstream #3669: Cursor ACP thread rendering, thought output, cancel delivery#13
justingray0 merged 1 commit into
mainfrom
feat/adopt-cursor-acp-rendering-3669

Conversation

@justingray0

Copy link
Copy Markdown
Owner

Summary

Adopts upstream pingdotgg#3669 on top of the fork's #9 resume/recovery hardening. This is step 3 of migrating off our fork-only #10 turn-scoping (reverted in #12) to the upstream fix, which addresses the same resumed-session ordering bug at the source and bundles three more Cursor fixes:

  1. Cancel now reaches the agentsession/cancel is sent as a spec notification (no id), not a JSON-RPC request the CLI silently dropped.
  2. Resumed sessions render below the latest user message — ACP assistant segment item ids are tagged with a per-runtime tag, so a resumed session no longer appends into a prior run's message. (This is the root-cause fix that supersedes fix(cursor): scope assistant message ids by turn after resume #10's downstream turn-scoping.)
  3. Agent reasoning is visibleagent_thought_chunk parsed into channel-aware segments, surfaced as expandable thinking rows (reuses the Codex affordance).
  4. Turn-completion drain race — CursorAdapter drains queued ACP updates before turn.completed.

Applied on top of #9

Fork-only #9 work is preserved and coexists: isSessionLoadReplayActive / session-load gating, ProviderSessionRecovery.ts, activeTurnId sync. pingdotgg#3669's AcpAssistantSegmentState restructure (activeItemIdactive: {itemId, channel, text}) and #9's replay gating occupy different regions and merged cleanly.

Verification

Follow-up

Re-add the real-Cursor resume E2E (cursorResume.integration.test.ts, reverted with #10) adapted to the runtimeTag approach, as a stronger regression guard than the mock-agent scenarios.

Co-authored-by: Cursor cursoragent@cursor.com
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

…utput, cancel delivery

Applies pingdotgg#3669 on top of the fork's #9 resume/recovery hardening.
Fixes: session/cancel sent as JSON-RPC notification (not request), runtime-unique
ACP segment item ids so resumed sessions render below the latest user message,
agent_thought_chunk parsed as expandable reasoning rows, and a turn-completion
drain race. Supersedes the reverted #10 turn-scoping.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@justingray0 justingray0 merged commit c8cae21 into main Jul 4, 2026
@justingray0 justingray0 deleted the feat/adopt-cursor-acp-rendering-3669 branch July 4, 2026 00:06
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.

1 participant