Repository navigation
Commit e6caca2
authored
Report onboarding duplicate-callback recovery through reportError (CL-7255) (#594)
## Summary
`recentlyConnectedCredential` still treats a hub/parse failure as found-nothing so the OAuth callback ends at `state_expired`. The catch now calls `reportError` with `operation: "onboarding_duplicate_callback_recovery"` and `extra.userId`, and no longer interpolates the raw `cause.message` into the operational log.
## Verification
- `bun test packages/onboarding/test/report-error-routing.test.ts` before the implementation: 4 pass, 1 fail, exit 1 (`reportErrorCalls` length 0).
- Same file after the implementation: 5 pass, 0 fail, exit 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 in `scripts/db-setup.test.ts` with `PostgresError: password authentication failed for user "thegreataxios"` (pre-existing local `DATABASE_URL`, unrelated to this change).
Fixes CL-72551 parent 7f407ca commit e6caca2
3 files changed
Lines changed: 85 additions & 3 deletions
File tree
- packages/onboarding
- src
- test
- scripts/checks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
291 | 296 | | |
292 | | - | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
| |||
0 commit comments