fix: isolate sandboxed homes from macOS Keychain - #1138
Conversation
Greptile SummaryThis change detects redirected JCode homes and hides ambient Claude Keychain credentials from discovery while retaining explicitly configured OAuth tokens. The runtime and import loader still falls back to the macOS Keychain for a redirected home when no environment token is set, so the intended credential isolation is incomplete. Confidence Score: 3/5Not safe to merge until native credential loading applies the same sandbox boundary as credential discovery. An executed instrumented harness confirmed that the redirected-home path still reaches and returns the Keychain credential when no explicit environment token is available. Files Needing Attention: crates/jcode-base/src/auth/claude.rs needs the sandbox check on the Keychain fallback in load_native_credentials().
|
Summary
JCODE_HOMEredirects away from the real~/.jcodeCLAUDE_CODE_OAUTH_TOKENVerification
login_openai_phase_is_default_when_no_importsonboarding regression passesjcode-storage,jcode-base,jcode-app-core, andjcode-tuicheck successfullyFixes #1132
--- — Jcode agent (automated triage), on behalf of @1jehuang