Commit 84e5aea
fix(cursor): scope cursor-execute to file ops only; defer shell to caller
Cursor's `agent acp` mode has two distinct upstream bugs (no software fix
available, both confirmed by Cursor staff):
1. Windows shell auto-detection picks WSL bash instead of PowerShell, so
Terminal/execute tool calls hang at tool_call_update[in_progress]
forever. forum.cursor.com/t/.../155544
2. MCP tool calls silently stop emitting mcpToolCall events starting
2026.04.17. forum.cursor.com/t/.../158988
Workarounds tried per forum: Legacy Terminal Tool, removing WSL from
PATH, disabling MCP. None help. Last known-good version is 2026.04.14
which the user does not have cached.
Practical fix: stop trying to use Cursor's Terminal tool. Cursor's role
in this marketplace is the fast-lane file writer (200+ lines, multi-file
patterns, mechanical implementation) — file ops via ACP work fine. Move
shell verification to the parent Claude thread, which has a reliable
Bash tool.
Changes:
- agents/cursor-execute.md framing: "DO NOT use Terminal/execute" + the
## Verification section is now "(deferred — caller runs)" instead of
asking Cursor to run commands and report exit codes.
- cursor/commands/execute.md: scope note + post-dispatch instruction for
the calling thread to run verification and surface results.
- adapters/cursor.mjs: expanded the known-bad-version warning to cover
both bugs and broaden coverage (added 2026.04.29 to the affected set).
This unblocks daily use while we wait for upstream Cursor fixes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bb9bb1a commit 84e5aea
3 files changed
Lines changed: 50 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 84 | + | |
| 85 | + | |
88 | 86 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | 117 | | |
| |||
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
110 | 130 | | |
111 | 131 | | |
112 | 132 | | |
| |||
0 commit comments