Skip to content

Commit d504207

Browse files
Antigravity Agentclaude
andcommitted
fix(bridge): unset CLAUDECODE to allow nested sessions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f7c5ab commit d504207

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

deploy/tri-bridge-agent.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ while true; do
8585
TIMEOUT=120
8686
fi
8787
# Execute in repo context with timeout
88-
RESULT=$(timeout $TIMEOUT bash -c "$CMD" 2>&1 | head -c $MAX_RESULT) || true
88+
# Unset CLAUDECODE/CLAUDE_CODE to allow claude CLI when bridge-agent
89+
# runs inside an existing Claude Code session
90+
RESULT=$(env -u CLAUDECODE -u CLAUDE_CODE timeout $TIMEOUT bash -c "$CMD" 2>&1 | head -c $MAX_RESULT) || true
8991
EXIT_CODE=${PIPESTATUS[0]:-0}
9092
else
9193
RESULT="BLOCKED: command not in whitelist"

0 commit comments

Comments
 (0)