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 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f4f8aa081
commit
800bae97d7
1 file changed
+2
@@ -333,6 +333,8 @@ fn claude_extra(bin: &str) -> hx_core::sandbox::Extra {
|
|||||||
home.join(".claude"),
|
home.join(".claude"),
|
||||||
home.join(".claude.json"),
|
home.join(".claude.json"),
|
||||||
home.join(".config/claude"),
|
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(),
|
hx_core::approve::sock_path(),
|
||||||
],
|
],
|
||||||
network: true,
|
network: true,
|
||||||
|
|||||||
Reference in new issue
Block a user