Skip to content

[Bug]: Cursor (native SDK) provider has no revert at all — Revert to this message is never offered #17093

Closed as not planned

Description

@DKLokeswaran

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Use the built-in Cursor provider (the official @cursor/sdk one, not the ACP Registry provider) and sign in under Settings > Providers > Cursor.
  2. Start a thread on that provider and complete two or more turns, including at least one turn where the agent edits files.
  3. Hover any completed user message in the timeline.
  4. Also try the checkpoint rollback control.

Expected behavior

Hovering a completed user message offers Revert to this message, as it does on Codex and Claude threads, and reverting restores the workspace checkpoint while keeping the T3 timeline consistent.

Actual behavior

Revert is never offered on a Cursor thread — not on old messages, not on new ones, at any time. Hovering a message shows only Copy, and there is no checkpoint rollback control either. The action is silently absent: no disabled state, no tooltip, and no message explaining why.

Impact

Major degradation or frequent failure

Version or commit

Verified against upstream main @ 4ee6bfd50 (orchestration V2). Not version-specific: the capability is hard-coded, so any build containing this Cursor provider behaves the same.

Environment

Windows 11 (win32), T3 Code desktop app. Cursor provider through the official @cursor/sdk. Reproduces on any OS because the gate is a provider capability flag, not platform behavior.

Logs or stack traces

None — this is a capability gate, not a runtime error. The relevant behavior is structural (see diagnosis).

Diagnosis (from source, main @ 4ee6bfd)

  • apps/server/src/provider/Layers/CursorProvider.ts:28 — the Cursor provider presentation sets supportsConversationRollback: false.
  • apps/server/src/provider/providerSnapshot.ts:221 — copies that flag onto the provider snapshot.
  • apps/web/src/components/chat/MessagesTimeline.logic.ts:1222 — deriveRevertTurnCountByUserMessageId is only called when supportsConversationRollback is true; otherwise it returns an empty map, so revertTurnCount stays undefined.
  • apps/web/src/components/chat/MessagesTimeline.tsx:2282 — RevertUserMessageButton renders only when typeof revertTurnCount === "number", so the button never appears.
  • The server would reject a rollback even if the UI offered one: apps/server/src/orchestration-v2/Adapters/CursorAdapterV2.ts:94 sets canRollbackThread: false, and :162-163 sets providerCanRollbackConversation: false / providerRollbackReturnsSnapshot: false. apps/server/src/orchestration-v2/CommandPolicy.ts:306-320 (ensureRollback) rejects with "providerInstanceId conversation rollback is unavailable".
  • Root cause: the official SDK exposes no conversation rollback. CursorAdapterV2.ts:2563-2569 fails with "Cursor Agent SDK does not expose conversation rollback.", and docs/user/cursor.md:45 states the SDK "does not currently expose native agent fork, conversation rollback, active steering, or interactive approval callbacks."

Because the SDK has no rollback primitive, the capability cannot be satisfied on the SDK path today. What reads as a defect is that the UI removes the affordance silently instead of stating the provider cannot revert, while docs/internals/overview.md describes the intended contract as rejecting the operation before touching the filesystem rather than hiding it.

Requested outcome

Either:

  1. Offer revert on Cursor threads by coordinating the existing filesystem checkpoint with a provider-consistent conversation reset (the same fallback shape documented for ACP in docs/user/providers-acp.md:113-114), or
  2. If the SDK makes that impossible, surface an explicit "this provider cannot revert conversation history" state instead of silently omitting the action.

Not a duplicate

Workaround

Use Codex or Claude for threads where rewind is needed, or start a new thread for the work to retry. There is no way to restore a Cursor thread's checkpoint from the UI.

Activity

  1. DKLokeswaran commented on Oct 8, 2026

    @DKLokeswaran
    Author

    Superseded by #17296 (re-filed through the web form). Closing this one — same report, which now carries the bug/needs-triage labels.

  2. juliusmarminge commented on Oct 12, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Thanks for reopening, and sorry about the close loop: #17296 got closed as a duplicate of this one right after you closed this in its favor, so this issue is now the one we're tracking.

    This isn't a bug, though. The Cursor SDK doesn't expose conversation rollback (see docs/user/cursor.md), so the Cursor provider can't offer revert today. Adding a checkpoint-plus-reset fallback, or an explicit "this provider can't revert" state, is a feature request, and per CONTRIBUTING those go in Ideas discussions, so I'm labeling this enhancement and upstream. In the meantime, use Codex or Claude for threads where you'll need to rewind.

  3. added
    enhancement
    on Oct 12, 2026
  4. juliusmarminge commented on Oct 12, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Thanks for moving this to Ideas. The feature request now lives in discussion #18708, so I'm closing this issue in favor of it. Please follow and upvote there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions