refuse macOS routing when keychain bridge fails

This commit is contained in:
Merge Sim
2026-08-31 19:44:38 -07:00
parent 2e042d2258
commit f83ae4295b
@@ -82,6 +82,17 @@ export class ClaudeRuntimeAuthService extends ClaudeRuntimeAuthSync {
}
} catch (error) {
console.warn('[claude-runtime-auth] Failed to bridge macOS managed Claude Keychain', error)
// Never route a pane at a home whose credential surface could not be
// synchronized; fall back to the system lane instead.
return {
configDir: this.pathResolver.getRuntimePaths().configDir,
runtime: 'host',
wslDistro: null,
wslLinuxConfigDir: null,
envPatch: this.pathResolver.getRuntimePaths().envPatch,
stripAuthEnv: false,
provenance: 'system:managed-keychain-unavailable'
}
}
}
return preparation