Dashboard › cli › Distillation
531e3ef0-34fb-439f-9656-9ad0c5e00141["lore_tm_v1_vsAtivXfbarjYJF6-0yVgVtgklLUh1PTbQlDQh-CdEE","lore_tm_v1_tk01dSyRCeVTU81YxQKMR7YfvXdJZMQrV1O_nHPVZ70","lore_tm_v1_ftjejncJ70ymkxSvlnnNJZ3-nCNn0Q3nGuxalIsvtlE","lore_tm_v1_b_CVsBzdJpuunnQqvxtMWUptiR46SLzKVeV6bZjnWf4"]
Date: Sep 10, 2026
throwOnError is always false because errors are handled by the CLI itself./home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/glowing-cactus; modified review-relevant files include packages/cli/src/lib/constants.ts and packages/cli/src/lib/sentry-client.ts.getConfiguredSentryUrl() in packages/cli/src/lib/constants.ts from normalizeUrl(getEnv().SENTRY_HOST || getEnv().SENTRY_URL || undefined) to caching const env = getEnv() and returning normalizeUrl(env.SENTRY_HOST) ?? normalizeUrl(env.SENTRY_URL), so a whitespace/invalid SENTRY_HOST can fall through to a valid SENTRY_URL.getApiBaseUrl() and getControlSiloUrl() in packages/cli/src/lib/sentry-client.ts to resolve URL precedence as getConfiguredSentryUrl() ?? getActiveTokenHost() ?? DEFAULT_SENTRY_URL; intended behavior is explicit URL configuration first, then active credential’s trusted host so org-auth tokens can route self-hosted requests without SENTRY_URL.getControlSdkConfig() returns getSdkConfig(getControlSiloUrl()); its documented use is OAuth, user-account, and regions endpoints.packages/cli/src/lib/token-host.ts: getActiveTokenHost() gives storage OAuth precedence over an environment token unless SENTRY_FORCE_ENV_TOKEN is set; forceEnv is computed as hasEnvToken && !!getEnv().SENTRY_FORCE_ENV_TOKEN?.trim().packages/cli/src/lib/sentryclirc.ts only injects [defaults] url into SENTRY_URL if both SENTRY_HOST and SENTRY_URL are unset/blank; packages/cli/src/lib/sentry-url-parser.ts can set both env.SENTRY_HOST and env.SENTRY_URL to baseUrl; packages/cli/src/lib/oauth.ts retains control-silo resolution as getConfiguredSentryUrl() ?? DEFAULT_SENTRY_URL; packages/cli/src/lib/login-host-guard.ts uses normalizeUserInputToOrigin(env.SENTRY_HOST || env.SENTRY_URL) ?? DEFAULT_SENTRY_URL.packages/cli/test/lib/token-host.test.ts, token-host.property.test.ts, token-claims.test.ts, token-claims.property.test.ts, sentry-client.test.ts, sentry-client.invalidation.test.ts, env-token-host.test.ts, constants.test.ts, and constants.property.test.ts.