You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retry `cursor-agent` with headless print mode (`-p`) when the primary `chat` invocation fails silently or looks like a CLI mismatch; collect `cursor-agent --version` and add job-summary diagnostics. Document CI troubleshooting in the README.
| `timeout` | ❌ | `300` | Timeout in seconds before the agent is killed. |
37
37
38
38
## Outputs
39
39
@@ -125,6 +125,17 @@ The action caches the extracted Cursor CLI package across jobs using `@actions/c
125
125
126
126
---
127
127
128
+
## Troubleshooting (CI / smoke tests)
129
+
130
+
### `cursor-agent` exits with code 1 and little or no output
131
+
132
+
- **API key & billing**: Ensure `CURSOR_API_KEY` is set and valid. Agent / headless features may require an eligible Cursor plan; some errors only show up once the CLI talks to Cursor’s API.
133
+
- **Model**: The default `model: auto` should work for most accounts. If you pin `model`, confirm that model is available for your subscription.
134
+
- **CLI contract changes**: This action first runs `cursor-agent chat …` (with `--allow-*` flags from `permissions`). If that fails with no output or an “unknown command”-style error, it automatically retries using headless **print mode** (`-p`, `--output-format text`) as documented in the [Cursor headless CLI](https://cursor.com/docs/cli/headless) docs.
135
+
- **Debugging**: On failure, check the **job summary** — it includes `cursor-agent --version`, which invocation mode was used (`chat` vs `print`), merged stderr, and a **Diagnostics** section when both attempts fail.
136
+
137
+
---
138
+
128
139
## Versioning
129
140
130
141
This project uses [changesets](https://github.com/changesets/changesets) for versioning. See [`.changeset/README.md`](.changeset/README.md) for how to add a changeset when contributing.
0 commit comments