From 800bae97d7be280278fbcf1bbada6a16bd1c3825 Mon Sep 17 00:00:00 2001 From: Johannes Kresner Date: Tue, 17 Nov 2026 15:47:25 +0100 Subject: [PATCH] fix: sandboxed claude can read its macOS login from the keychain The seatbelt profile hides $HOME, and claude_extra did not bring back ~/Library/Keychains. On macOS claude keeps its OAuth login there, so a sandboxed claude failed with "Not logged in" and the only way out was to let it run unconfined. Co-Authored-By: Claude Opus 5.5 --- crates/hx-cli/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/hx-cli/src/main.rs b/crates/hx-cli/src/main.rs index 07335f9..4f1ff57 100644 --- a/crates/hx-cli/src/main.rs +++ b/crates/hx-cli/src/main.rs @@ -333,6 +333,8 @@ fn claude_extra(bin: &str) -> hx_core::sandbox::Extra { home.join(".claude"), home.join(".claude.json"), home.join(".config/claude"), + // macOS keeps claude's login in the login keychain; without it claude says "Not logged in" + home.join("Library/Keychains"), hx_core::approve::sock_path(), ], network: true, -- 2.54.1