Windsland52's wire trace (stateless path): partial c1 -> completed c1, partial c2 -> completed c2, partial c3 -> started c3 -> one exec, then the tool count (update 27), 7 set_blob, a checkpoint whose pending_tool_calls (ConversationStateStructure 4) holds one id, and 240s of heartbeats. Cursor's count includes calls it completed itself (#7 then #3, with no #2 and no exec), which never reach this side, so the step waited for calls that were never coming while Cursor waited on the one exec's result. The native path had the same gap and failed after batchWait. Cursor's own client (cursor-agent 2026.10.01) takes a toolCallCompleted for a call it never started, and never waits on toolRequestsListed. Now, on both paths, a #3 for a call seen as #7 in the same step, never started (#2) or exec'd here, counts toward the step's tool count, and a checkpoint after the count whose pending calls equal the calls this side holds ends the step too. The strict "more calls than the count" check still counts only calls that came and were answered here. The quiet error and batchWait name the count, the calls, the answered and those completed by Cursor; the Wire trace keeps each update's count, tool kind, pending and why the Run was cut. Update 8 is named (token count). Run at this head: stall-550.test.mjs (10 tests, built from the trace's 195 inbound frames in order) and the cursor suite 376/0 on mote; the root suite with a temp HOME 4196 pass, 0 fail, and check.mjs cursor ok on mote; native-session, native-e2e, stall-550, conversation and stepusage 191/0 on Windows (win-run). Broken by hand, each red only in its own test: the stateless completed-by-Cursor rule, the stateless checkpoint rule, the native completed rule, the native checkpoint (waitedOn), and the #7-in-this-step requirement. Not tried: a real Cursor account; the real count value (the trace gives only 2..127); that a #3's call_id equals McpArgs.tool_call_id; what the two completed calls were; whether Cursor can checkpoint mid-step with pending equal to the calls before more execs.
13 lines
557 B
JSON
13 lines
557 B
JSON
{
|
|
"name": "@magpie-community/opencode-cursor-auth",
|
|
"version": "0.2.35",
|
|
"description": "Cursor subscriptions (Pro, Pro+, Ultra, Teams) in OpenCode and magpie, through the API cursor-agent talks to",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "native-session.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "cursor"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cursor" }
|
|
}
|