Repository navigation
Classify cursor startup failures and keep their diagnostics - #14
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 optionaslaunch_configwith the messageAgent runner rejected the launch configuration (<runner>). Other non-auth diagnostics are redacted (bearer tokens,sk-…keys, long hex/token blobs, andapi_key/token/secret/passwordassignments) before they are attached, so Sentry can keep the line. Ordinary agent failures such asTypeError: something brokestayagent_error.This does not change
cursor-agentflags. 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.