Skip to content

Commit ad4f7b4

Browse files
ClaudeMMclaude
andcommitted
fix: forward env vars to tmux child + update codex defaults
- Fix tmux start to forward all env vars (ROOMS, SMART_MODE, etc.) into the child session — previously the tmux child started with no env vars and exited immediately - Update default ROOMS to include all three rooms (thinkoff-development, feature-admin-planning, lattice-qcd) - Update README codex section with known-good settings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 20685aa commit ad4f7b4

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ export IAK_POLL_INTERVAL=10
7575
nohup ./scripts/room-poll.sh > /tmp/poll.log 2>&1 &
7676

7777
# Codex (@antigravity) - smart poller with real codex exec replies
78-
export ANTIGRAVITY_API_KEY=xfb_your_antfarm_key
79-
export ROOMS=feature-admin-planning
78+
# Requires .env.local with ANTIGRAVITY_API_KEY=xfb_your_antfarm_key
79+
# Default settings (all rooms, smart mode, no placeholder acks):
80+
export ROOMS=thinkoff-development,feature-admin-planning,lattice-qcd
8081
export SMART_MODE=1
8182
export CODEX_APPROVAL_POLICY=on-request
8283
export CODEX_SANDBOX_MODE=workspace-write
84+
export SKIP_PRESTART_BACKLOG=1
85+
export NO_PLACEHOLDER_ACK=1
8386
./tools/antigravity_room_autopost.sh tmux start
8487
./tools/antigravity_room_autopost.sh tmux status
8588
./tools/antigravity_room_autopost.sh tmux stop

tools/antigravity_room_autopost.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [[ -z "${API_KEY:-}" ]]; then
2828
fi
2929

3030
BASE_URL="https://antfarm.world/api/v1"
31-
ROOMS_CSV="${ROOMS:-feature-admin-planning}"
31+
ROOMS_CSV="${ROOMS:-thinkoff-development,feature-admin-planning,lattice-qcd}"
3232
POLL_INTERVAL="${POLL_INTERVAL:-8}"
3333
FETCH_LIMIT="${FETCH_LIMIT:-30}"
3434
SESSION="${SESSION:-antigravity-room-autopost}"
@@ -375,7 +375,18 @@ if [[ "${1:-}" == "tmux" ]]; then
375375
echo "$SESSION already running"
376376
exit 0
377377
fi
378-
tmux new-session -d -s "$SESSION" "$0"
378+
# Forward all relevant env vars into the tmux child session
379+
local env_prefix=""
380+
for var in ROOMS POLL_INTERVAL FETCH_LIMIT MENTION_ONLY SMART_MODE \
381+
CODEX_WORKDIR SMART_TIMEOUT_SEC CODEX_APPROVAL_POLICY \
382+
CODEX_SANDBOX_MODE MAX_REPLY_AGE_SEC SKIP_PRESTART_BACKLOG \
383+
NO_PLACEHOLDER_ACK PRIME_ON_START RESPOND_TO_HANDLE \
384+
AUTORESPONDER_ENABLED REAL_REPLY_ONLY; do
385+
if [[ -n "${!var:-}" ]]; then
386+
env_prefix="${env_prefix}${var}=${!var} "
387+
fi
388+
done
389+
tmux new-session -d -s "$SESSION" "env ${env_prefix}$0"
379390
echo "Started $SESSION (rooms=$ROOMS_CSV interval=${POLL_INTERVAL}s mention_only=$MENTION_ONLY)"
380391
;;
381392
*)

0 commit comments

Comments
 (0)