KPR
February 23, 2026, 9:21pm
1
I can no longer open the terminal the agent is using. There used to be an “Open” link that would open the agent’s terminal and now I can’t see what it’s doing, if anything. This is especially frustrating when it seems to stall on simple commands like “git status.”
In fact, commands do not seem to be executing at all. So with that…
Hello @KPR , Welcome to AI Forum!
Thank you for bringing this to our attention. We escalated the issue to our internal teams for a thorough investigation.
To ensure our engineering team can investigate and resolve these issues effectively, we highly recommend filing bug reports directly through the Antigravity in-app feedback tool. You can do this by navigating to the top-right corner of the interface, clicking the Feedback icon, and selecting Report Issue.
1 Like
settings.json
"terminal.external.linuxExec": "/home/daryl/Projects/dotfiles/.scripts/ag-tmux",
"terminal.integrated.persistentSessionReviveProcess": "never",
"terminal.integrated.rescaleOverlappingGlyphs": false,
// This forces the AGENT'S headless shell to use your script
"terminal.integrated.profiles.linux": {
"ag-tmux-wrapper-agent": {
"path": "/home/daryl/Projects/dotfiles/.scripts/ag-tmux",
"icon": "terminal-linux",
"env": {
"FORCE_TMUX": "true",
"AI_AGENT": "1"
}
},
"ag-tmux-wrapper-human": {
"path": "/home/daryl/Projects/dotfiles/.scripts/ag-tmux",
"icon": "terminal-linux",
"env": {
"FORCE_TMUX": "true",
"HUMAN_AGENT": "1"
}
}
},
"terminal.integrated.defaultProfile.linux": "ag-tmux-wrapper-human",
"terminal.integrated.env.linux": {
"HUMAN": "1"
},
// AGENT
"terminal.integrated.automationProfile.linux": {
"path": "/home/daryl/Projects/dotfiles/.scripts/ag-tmux",
"icon": "terminal-linux",
"env": {
"FORCE_TMUX": "true",
"AI_AGENT": "1"
}
},
// Ensure the IDE doesn't try to "help" by injecting its own shell integration
"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.inheritEnv": false,
# [/tmp]
# daryl@Sleipnir $ cat ~/.scripts/ag-tmux
#!/bin/bash
# 1. Absolute Path Bootstrap
TMUX_BIN=$(command -v tmux || echo "/usr/bin/tmux")
# 2. Identify Context
PROJ_ROOT=$(realpath "${ANTIGRAVITY_WORKSPACE_ROOT:-$PWD}")
SESSION_BASE=$(basename "$PROJ_ROOT" | tr '.' '_')
# 3. Path Splitting (Agent vs Human)
if [[ -n "$AI_AGENT" || -n "$ANTIGRAVITY_AGENT" ]]; then
# AGENT PATH: Use hashed names and separate socket to avoid stomping on human sessions
SESSION_HASH=$(echo -n "$PROJ_ROOT" | md5sum | cut -c1-8)
SESSION_NAME="${SESSION_BASE}_${SESSION_HASH}_agent"
SOCKET_OPT="-L agent_socket"
TELEGRAPH_DIR="/tmp/ag-tmux-telegraph"
mkdir -p "$TELEGRAPH_DIR"
TELEGRAPH_FILE="$TELEGRAPH_DIR/${SESSION_NAME}.log"
if [[ "$1" == "-c" ]]; then
shift
touch "$TELEGRAPH_FILE"
# Ensure session exists and tails the telegraph file
if ! "$TMUX_BIN" $SOCKET_OPT has-session -t "$SESSION_NAME" 2>/dev/null; then
"$TMUX_BIN" $SOCKET_OPT new-session -d -s "$SESSION_NAME" \
-c "$PROJ_ROOT" \
-e "ANTIGRAVITY_AGENT=1" \
-e "AI_AGENT=true" \
"tail -f '$TELEGRAPH_FILE'"
fi
# Visual marker for command start
echo -e "\n\033[1;34m=== $(date '+%H:%M:%S') Executing: $@ ===\033[0m" >> "$TELEGRAPH_FILE"
# Execution with telegraphing. Use eval to support builtins (export, etc)
eval "$@ 2>&1 | tee -a '$TELEGRAPH_FILE'"
exit $?
else
# Agent Interactive Path (e.g. attaching/manual tab)
if ! "$TMUX_BIN" $SOCKET_OPT has-session -t "$SESSION_NAME" 2>/dev/null; then
"$TMUX_BIN" $SOCKET_OPT new-session -d -s "$SESSION_NAME" \
-c "$PROJ_ROOT" \
-e "ANTIGRAVITY_AGENT=1" \
-e "AI_AGENT=true" \
"bash"
fi
exec "$TMUX_BIN" $SOCKET_OPT attach-session -t "$SESSION_NAME"
fi
else
# HUMAN PATH: Restore original simple behavior
SESSION_NAME="$SESSION_BASE"
# (Banana! Sane version restored)
exec "$TMUX_BIN" new-session -A -D -s "$SESSION_NAME" -c "$PROJ_ROOT"
fi
Now you can put your Agent’s shell on your other monitor, or watch it work while you fall asleep