Cursor sends a step's tool count (field 27) before or after its execs.
Execs magpie answers itself (get_mcp_tools, a tool of Cursor's own that
is refused) were not counted, so a step holding one never reached its
count and the next step's count ended it early: "inconsistent native
tool count" 502. The built-in now counts them; request_context_args is
not a call. Moved Cursor users get @magpie-community/opencode-cursor-auth
0.2.15 (on npm), the same fix in the plugin plus KV replies that wait for
a slow link.
Run: gofmt; go vet -tags nogui for darwin, linux, windows on
internal/gateway and internal/provider; go test -run 'Cursor|Moved'
./internal/gateway ./internal/provider ok. TestCursorCountTakesAnsweredExecs
fails with the old cursor.go restored by hand, passes with the fix.
Not tried against a real Cursor account.
Full suite: SUITE_LINE