Repository navigation
Report onboarding duplicate-callback recovery through reportError (CL-7255) - #594
Merged
TheGreatAxios merged 3 commits intoSep 4, 2026
Conversation
Contributor
Author
Self-reviewVerdict: the fix correctly routes the duplicate-callback recovery catch through
Targeted tests:
No fixes needed; no commits pushed. |
The recentlyConnectedCredential catch still treats a hub failure as found-nothing so the caller ends at state_expired. It now reports the cause with operation and userId, and no longer interpolates the raw message into the operational log.
A type-mismatch parse summary is `was string` and never mentions the value, so asserting logs omit SECRET was a tautology. Put the token in a union field arktype echoes, prove the cause carries it, and reject it in the reportError context and operational logs.
TheGreatAxios
force-pushed
the
cl-7255-recentlyconnectedcredentials-catch-swallows-a-raw-error
branch
from
September 4, 2026 05:15
30dfc90 to
e3d67a7
Compare
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.
Summary
recentlyConnectedCredentialstill treats a hub/parse failure as found-nothing so the OAuth callback ends atstate_expired. The catch now callsreportErrorwithoperation: "onboarding_duplicate_callback_recovery"andextra.userId, and no longer interpolates the rawcause.messageinto the operational log.Verification
bun test packages/onboarding/test/report-error-routing.test.tsbefore the implementation: 4 pass, 1 fail, exit 1 (reportErrorCallslength 0).bun test packages/onboarding/src packages/onboarding/test/report-error-routing.test.ts packages/onboarding/test/openrouter-connect-routes.test.ts packages/onboarding/test/huggingface-connect-routes.test.ts packages/onboarding/test/routes.test.ts: 72 pass, 0 fail, exit 0.cd packages/onboarding && bunx tsc --noEmit: exit 0.bun run typecheck: exit 0.bun run check:report-error: exit 0 (baseline shrunk by the fixed catch).bun run check: typecheck and lint passed (eslint 0 errors / 10 pre-existing warnings). The test step failed inscripts/db-setup.test.tswithPostgresError: password authentication failed for user "thegreataxios"(pre-existing localDATABASE_URL, unrelated to this change).Fixes CL-7255