Dashboard › cli › Distillation
c6db628b-dba5-463d-a594-436806749493["lore_tm_v1_T9FgkXWmlsckC-Yk2KVCngW7T5tA2CFOdBsSNB_aI1I","lore_tm_v1_LEt4RMn2CXELOvQqC51hTDWCPaCDL5kAtb3reAlC7a0","lore_tm_v1_HP8d9d0HXoLKIwKPt893Sfm66cTak9dzNE3BXNzVp00","lore_tm_v1_ob_NshrgfivRmFAjPGT_4nBAXK8CdHqmWotOH6wxGVc","lore_tm_v1_-5_Y5R04pgcjQhMOnXzxjXENEgfM4PgHvRqsRVEeV3c"]
Date: Sep 10, 2026
packages/cli/src/lib/sentry-client.ts (listed twice) and packages/cli/test/lib/security/sntrys-claim-mismatch.test.ts; exact diff content was not shown.test/lib/security/sntrys-claim-mismatch.test.ts under Vitest v4.1.10 failed: 7 of 14 tests failed and 7 passed. All normal-request cases failed because handleResponse accessed response.status when response was undefined at packages/cli/src/lib/sentry-client.ts:304; stack path was handleResponse → executeAttempt (:668) → fetchWithRetry (:522) → http.request.method (:624) → src/lib/telemetry.ts:1076 → apiRequestToRegion (src/lib/api/infrastructure.ts:488).test/lib/security/sntrys-claim-mismatch.test.ts were: token whose claim matches the request proceeds normally; claim URL routes requests when no explicit URL is configured; stored OAuth host takes precedence over an inactive env token claim; forced env token claim takes precedence over stored OAuth; refuses a cross-origin redirect before forwarding custom headers; self-hosted multi-region: claim check honors region URL extension; and opaque (non-sntrys_) tokens are not affected by claim check./Refusing to route requests/i but instead received Cannot read properties of undefined (reading 'status'), indicating the redirect refusal path was masked by the undefined-response control-flow failure.response; assistant intended to retain redirect checking at the authenticated-fetch boundary.fetchWithRetry always returns "done" or "throw"; the unreachable-path comment appears at packages/cli/src/lib/sentry-client.ts:556.packages/cli/src/lib/sentry-client.ts:435-437.packages/cli/src/lib/sentry-client.ts structure includes AttemptResult variant { action: "done"; response: Response } around line 291; handleResponse around lines 301-312; fetchWithRetry around lines 510-556, checking result.action === "done" around line 531; an authenticated request flow with response caching for GET requests around lines 564-638; and executeAttempt around lines 648-669.test.poolOptions was removed in Vitest 4 and prior poolOptions settings must be top-level options.SENTRY_AUTH_TOKEN was detected but stored OAuth login was being used for the stored OAuth user; SENTRY_FORCE_ENV_TOKEN=1 selects the environment token instead.