Skip to content

Classify cursor startup failures and keep their diagnostics - #14

Merged
cursor[bot] merged 1 commit into
masterfrom
dougrathbone/cursor-run-failure-report-c6d6
Oct 14, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
dougrathbone/cursor-run-failure-report-c6d6

Conversation

@dougrathbone

Copy link
Copy Markdown
Owner

Fixes CONDUIT-P

The Weekly Cursor cron exits 1 within a few seconds and was reported as a generic Agent run failed (exit 1) (failureKind=agent_error). The CLI's last line was attached raw, and Sentry replaced the whole value with [Filtered], so the reason was not visible.

Run-failure classification now treats missing API keys and CLI login errors as authentication (stable message, no raw line), and treats cannot use this model / unknown option as launch_config with the message Agent runner rejected the launch configuration (<runner>). Other non-auth diagnostics are redacted (bearer tokens, sk-… keys, long hex/token blobs, and api_key/token/secret/password assignments) before they are attached, so Sentry can keep the line. Ordinary agent failures such as TypeError: something broke stay agent_error.

This does not change cursor-agent flags. A valid stored model is still passed through. The next Weekly failure should land on the more specific issue instead of CONDUIT-P, with a readable last line.

npx vitest run src/server/runFailure.test.ts src/server/runnerReporting.test.ts src/main/execution/adapters/cursor.test.ts — 62 passed.

Open in Web Open in Cursor 

Expand run-failure classification so missing API keys and CLI login
errors report as authentication (without raw lastLine), and immediate
startup rejections (bad model / unknown option) use a new launch_config
kind. Redact secret-shaped material before attaching lastLine so Sentry
keeps the diagnostic instead of scrubbing the whole line.

Fixes CONDUIT-P
@cursor
cursor Bot merged commit 3201867 into master Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants