fix(mac-compat): bypass keyring auth check hang and link macOS Library/Keychains to isolated home
This commit is contained in:
@@ -89,7 +89,10 @@ if [ "$AGENT" = "claude" ]; then
|
||||
exit 1
|
||||
fi
|
||||
elif [ "$AGENT" = "agy" ]; then
|
||||
if ! agy models >/dev/null 2>&1; then
|
||||
# Fast, non-blocking check: if token or credentials exist on disk, assume authenticated to prevent keyring hang
|
||||
if [ -f "$HOME/.gemini/oauth_creds.json" ] || [ -f "$HOME/.gemini/antigravity-cli/antigravity-oauth-token" ]; then
|
||||
true
|
||||
elif ! agy models >/dev/null 2>&1; then
|
||||
echo "ERROR: agy is not authenticated. Please log in first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user