GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(cursor): keep failed plans from becoming actionable by only21mil · Pull Request #23172 · pingdotgg/t3code Conversation
|
main 3e17618212 |
3ba27a1bee |
|---|---|
![]() Plan Ready |
![]() Completed |
Once the thread is opened, main still shows "Plan Ready" and this change no label (captures below). The stored plan is active on main, superseded here; its node is failed on both.
Links. Regression test
Not shown
createPlan failure Cursor makes on its own (the proxy stands in), or a success (the regression test covers it).After opening the thread once, main 3e17618212:

After opening the thread once, main 3e17618: Plan Ready
After opening the thread once, 3ba27a1bee:

After opening the thread once, 3ba27a1: no label
Run of 2026-11-15, main 3e17618212 first, then 3ba27a1bee, each on a fresh database. The plan thread's createPlan lines from the provider log, the stored rows after the server stopped, and the proxy's own log. Main 3e17618212:
base 3e17618212, provider log of the plan thread (tools/createplan.py)
2026-11-15T01:33:52.044Z tool-call-started createPlan result=- error=- planLength=5700
2026-11-15T01:33:52.148Z tool-call-completed createPlan result=error error=The client could not show this request to the user planLength=5700
run lines:
2026-11-15T01:33:20.192Z agent.open status=-
2026-11-15T01:33:20.193Z agent.opened status=-
2026-11-15T01:33:20.315Z run.start status=- mode=plan
2026-11-15T01:33:20.946Z run.started status=-
2026-11-15T01:33:56.990Z run.completed status=finished
2026-11-15T01:35:42.740Z agent.close status=-
thread title "Notes search plan" | interaction_mode plan | hasActionableProposedPlan None
plan kind proposed_plan | plan status active | markdown length 5475
plan node kind plan | node status failed
all nodes of the thread (kind, status, count): [('assistant_message', 'completed', 3), ('plan', 'failed', 1), ('reasoning', 'completed', 7), ('root_turn', 'completed', 1), ('tool_call', 'completed', 7)]
$ grep -c . proxy-base.log; grep -E "FLIPPED|createPlanRequestResponse" proxy-base.log
176
2026-11-15T01:33:52.136Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
flip count: 1
$ grep -c -i -E "authorization|bearer|cookie|token|crsr_|@" proxy-base.log
0
3ba27a1bee:
tip 3ba27a1bee, provider log of the plan thread (tools/createplan.py)
2026-11-15T01:37:53.880Z tool-call-started createPlan result=- error=- planLength=6060
2026-11-15T01:37:54.092Z tool-call-completed createPlan result=error error=The client could not show this request to the user planLength=6060
2026-11-15T01:38:00.894Z tool-call-started createPlan result=- error=- planLength=3526
2026-11-15T01:38:02.801Z tool-call-completed createPlan result=error error=The client could not show this request to the user planLength=3526
run lines:
2026-11-15T01:37:35.581Z agent.open status=-
2026-11-15T01:37:35.581Z agent.opened status=-
2026-11-15T01:37:35.734Z run.start status=- mode=plan
2026-11-15T01:37:36.345Z run.started status=-
2026-11-15T01:38:10.634Z run.completed status=finished
2026-11-15T01:39:06.996Z agent.close status=-
thread title "Notes search plan" | interaction_mode plan | hasActionableProposedPlan None
plan kind proposed_plan | plan status superseded | markdown length 5820
plan node kind plan | node status failed
plan kind proposed_plan | plan status superseded | markdown length 3402
plan node kind plan | node status failed
all nodes of the thread (kind, status, count): [('assistant_message', 'completed', 2), ('plan', 'failed', 2), ('reasoning', 'completed', 6), ('root_turn', 'completed', 1), ('tool_call', 'completed', 5)]
$ grep -c . proxy-tip.log; grep -E "FLIPPED|createPlanRequestResponse" proxy-tip.log
167
2026-11-15T01:37:53.955Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
2026-11-15T01:38:01.072Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=168B FLIPPED createPlanRequestResponse success->error
flip count: 2
$ grep -c -i -E "authorization|bearer|cookie|token|crsr_|@" proxy-tip.log
0
Run of 2026-11-14, main 7f81aa8386 first, then 5d3950e69c, each on a fresh database. The plan thread's createPlan lines from the provider log, the stored rows after the server stopped, and the proxy's own log. Main 7f81aa8386:
base 7f81aa8386, plan thread "Notes search plan" provider log (events.<plan thread>.log), createPlan lines; tools/createplan.py
2026-11-14T22:43:06.993Z tool-call-started createPlan result=- error=- planLength=5440
2026-11-14T22:43:07.293Z tool-call-completed createPlan result=error error=The client could not show this request to the user planLength=5440
2026-11-14T22:43:11.543Z run.completed status=finished; 2026-11-14T22:46:17.955Z agent.close (the server stopping); no other createPlan line
base 7f81aa8386 stored rows, read-only from a copy of statev2.sqlite taken after the server stopped; tools/rows.py
thread title "Notes search plan" | interaction_mode plan | hasActionableProposedPlan None
plan kind proposed_plan | plan status active | markdown length 5231
plan node kind plan | node status failed
all nodes of the thread (kind, status, count): [('assistant_message', 'completed', 3), ('plan', 'failed', 1), ('reasoning', 'completed', 6), ('root_turn', 'completed', 1), ('tool_call', 'completed', 7)]
$ grep -c . proxy-base.log; grep -E "FLIPPED|createPlanRequestResponse" proxy-base.log
233
2026-11-14T22:43:07.130Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
flip count: 1
$ grep -c -i -E "authorization|bearer|cookie|token" proxy-base.log
0
5d3950e69c:
tip 5d3950e69c, plan thread "Notes search plan" provider log (events.<plan thread>.log), createPlan lines; tools/createplan.py
2026-11-14T22:49:46.869Z tool-call-started createPlan result=- error=- planLength=7458
2026-11-14T22:49:47.297Z tool-call-completed createPlan result=error error=The client could not show this request to the user planLength=7458
2026-11-14T22:49:52.192Z run.completed status=finished
2026-11-14T22:50:46.849Z agent.close status=-
tip 5d3950e69c stored rows, read-only from a copy of statev2.sqlite taken after the server stopped; tools/rows.py
thread title "Notes search plan" | interaction_mode plan | hasActionableProposedPlan None
plan kind proposed_plan | plan status superseded | markdown length 7133
plan node kind plan | node status failed
all nodes of the thread (kind, status, count): [('assistant_message', 'completed', 5), ('plan', 'failed', 1), ('reasoning', 'completed', 7), ('root_turn', 'completed', 1), ('tool_call', 'completed', 7), ('tool_call', 'failed', 1)]
$ grep -c . proxy-tip.log; grep -E "FLIPPED|createPlanRequestResponse" proxy-tip.log
178
2026-11-14T22:49:46.949Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
flip count: 1
$ grep -c -i -E "authorization|bearer|cookie|token" proxy-tip.log
0
Earlier run, 2026-11-12: signed-in Cursor account, Composer 2.5, Cursor SDK 1.2.0, a "Test machine" test server, prompts typed in T3's Browser panel; main f419698aea first, then this branch merged with it (fd727e3235; d4ebdb82f7 adds only a test change). The same proxy turned the createPlan success reply into the error; each commit made one createPlan call. Its fd727e3235 rows below also list "Closing plan", the thread from the main run before it.
| Revision | createPlan |
Plan | Node | Command palette |
|---|---|---|---|---|
main f419698aea |
error | active |
failed | Plan Ready |
fd727e3235 |
error | superseded |
failed | Completed |
Re-checked against main f419698aea on 2026-11-12: the branch merges cleanly, the regression test fails on that main without the change and passes with it, and that run produced the Cursor failure the verification at 5ea0a49 could not. The merge needed one test change for main's Effect rules (#31111).
The adapter's createPlan updates for each plan-mode thread, then the stored plan rows at that point. Main f419698aea:
$ python3 -I curate.py main-plan-thread.log # main f419698aea
2026-11-12T12:05:18.28 tool-call-started createPlan result=none plan_chars=1962
2026-11-12T12:05:18.62 tool-call-completed createPlan result=error error=The client could not show this request to the user plan_chars=1962
$ sh rows.sh statev2.sqlite
title|interaction_mode|plan_kind|plan_status|node_status
Closing plan|plan|proposed_plan|active|failed
$ grep FLIPPED proxy.log
POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
fd727e3235:
$ python3 -I curate.py merged-plan-thread.log # fd727e3235 = b91e125fc0 merged with main f419698aea (local)
2026-11-12T12:07:05.44 tool-call-started createPlan result=none plan_chars=2468
2026-11-12T12:07:05.53 tool-call-completed createPlan result=error error=The client could not show this request to the user plan_chars=2468
$ sh rows.sh statev2.sqlite
title|interaction_mode|plan_kind|plan_status|node_status
Closing plan|plan|proposed_plan|active|failed
Ending plan|plan|proposed_plan|superseded|failed
$ grep FLIPPED proxy.log
POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=168B FLIPPED createPlanRequestResponse success->error
The proxy's own log, which records only time, method, path, status, size and the change:
$ grep -h -E "FLIPPED|listening" proxy-main.log proxy-merged.log
2026-11-12T12:05:18.354Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=164B FLIPPED createPlanRequestResponse success->error
2026-11-12T12:07:05.504Z POST api2.cursor.sh/aiserver.v1.BidiService/BidiAppend -> 200 req=168B FLIPPED createPlanRequestResponse success->error
$ grep -c -i -E "authorization|bearer|cookie|token" proxy-main.log proxy-merged.log
proxy-main.log:0
proxy-merged.log:0
The focused adapter regression covers both outcomes. It checks that the start and completion update the same plan, preserve its markdown, and agree with the node and turn-item status. On Node 26.12.1 on d4ebdb82f7, packages/provider-cursor/src/server/adapter.test.ts passes 26/26, the four apps/server suites that replay Cursor pass 20/20, and vp run check:changed passes; with main's adapter.ts the failed-plan case fails with expected 'active' to equal 'superseded'. Before the test change, fd727e3235 failed typecheck at adapter.test.ts:89 with effect(redundantOrDie).
Longer problem text, as written before:
A Cursor createPlan call can finish with an error while T3 stores its proposed plan as active. The plan node and turn item already say failed, so the plan's status contradicts them. The server accepts any active plan as a source plan for implementation, and threads in plan mode treat an active plan as ready to act on.
When this PR was opened, clients also showed Plan ready and Implement for the failed plan. Since #33131 the web and mobile clients no longer have plan mode, so that button is gone on main. Plan-mode Cursor threads still start through the MCP create_threads and delegate_task tools.
#4942 by Ihor Levchenko (redwon) addressed refined plan files in the old ACP adapter. Julius Marminge closed it because orchestration V2 replaced those files. This fixes a different SDK status bug and reuses no code. #21448 fixes unfinished generic tool rows in a separate handler.
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A createPlan call that Cursor finished with an error already marked its plan node and turn item failed, but the plan artifact still went active. The thread then showed "Plan Ready" and the implement-plan prompt, and the server accepted the failed plan as an implementation source. Only a plan Cursor accepted becomes active now; a failed one stays a draft, so its markdown and failed row remain visible. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Recover the focused plan lifecycle test and superseded status from lane commits 6b478d3025 and 09fe3f2ea0 verified during the outage. Replace the mixed diagnostics test addition with the dedicated protocol regression. Co-Authored-By: GPT-6.1 Sol <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped Cursor adapter fix that prevents failed plan proposals from being presented or accepted as actionable while preserving successful plan behavior. It reuses existing lifecycle statuses and adds focused regression coverage without schema or infrastructure changes. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Written by Verified in a real dev environmentpartial verification at
main codex control: pr successful codex plan control: command transcript. captures inspected; uploaded video playback and seeking checked in t3's player. Not verifiedthe changed cursor failure behavior remains unverified. the diff handles cursor sdk therefore i did not reproduce the original cursor error on main, produce a failed cursor plan on the pr, or exercise its native mobile, packaged electron, macos/windows, and remote/relay/tunnel modes were not exercised on this linux vm. no source changes or pushes were made. result: unverifiable for the actual fix, with the two codex controls above passing. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 Opus 5.5 replying on behalf of Victor. @maria-rcks thanks for the report; we ran it with a real signed-in Cursor account (Composer 2, isolated home, synthetic project), and because the Cursor SDK answers |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ionab Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's Effect rules (pingdotgg#31111) make redundantOrDie an error, so the merged tree failed typecheck. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Note 🤖 Opus 5.5 replying on behalf of Victor. I merged main |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…plans-from-becoming-actionab
|
The automated pipeline stopped on this pull request and will not merge it: in the real app the problem is still there, and the rework changed nothing: No code change. I could not reproduce the report that the problem still happens in the real app, and every hop I checked behaves correctly at 5d3950e. (1) Real Cursor backend: I ran the adapter on this branch with the real SDK runner against Cursor's live backend (Composer 2.5, plan mode), with a scratch copy of the SDK whose createPlan reply was rewritten to CreatePlanError('Controlled proof: plan could not be saved'), the same reply the proof's proxy injected. The backend's tool-call-completed carried {status:'error', error:{message:...}} for createPlan. The adapter emitted the plan as draft and then superseded, with the turn item and node marked failed. The success control on the unpatched SDK stored the plan as active. (2) Downstream: ProviderEventIngestor and ProjectionStore store plan.updated status as is, and ProviderCommitBatch commits in order with no dedupe. readThreadSnapshot rebuilds only messages, not plans, so reopening the thread through Ctrl+K cannot bring back an active plan. The Orchestrator rejects message.dispatch with a sourcePlanRef whose plan is not active ('Proposed plan … is not active'). That check runs before the dispatch-mode branches, so defer_start goes through it too, and sourcePlanRef is part of the command schema. (3) The plan card's Plan actions menu only offers Copy to clipboard, Download as markdown and Save to workspace whatever the plan's status, so it cannot show a difference between the commits. Plan-mode Implement was removed from web and mobile in #33131. So the proof run's 'still happens' does not match the code or the live backend. Its evidence was not available to me; a likely cause is that it judged by the menu, or its dispatch did not use the stored plan id. It stays open for a person to finish or close. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 Opus 5.5 replying on behalf of Victor. I ran the real app against Cursor's live backend with plan creation failing: a default-mode Cursor thread started a plan-mode Cursor thread through |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 Opus 5.5 replying on behalf of Victor. I merged main into this branch to clear the red Agent context budget check, which came from main. Main had changed the Cursor adapter, so I re-ran the Cursor proof on main |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 Opus 5.5 replying on behalf of Victor. Closing this PR to keep my open PR list small and focused on current fixes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.