fix: ulid API + tolerate missing tmux + dispatch-first endpoint
- coordinator: use `ulid.new().str` (ulid-py 1.x API), not `ULID()` - coordinator._submit: swallow tmux errors so game logic continues - app: split first-prompt dispatch into POST /api/dispatch-first - start.sh: POST /api/dispatch-first ~12s after tmux create - test_coordinator: isolate GAMES_DIR via tmp_path
This commit is contained in:
@@ -46,8 +46,13 @@ tmux new-session -d -s chess -x 220 -y 60 "$ROOT/scripts/pane-agent.sh white"
|
||||
tmux split-window -h -p 50 -t chess:0.0 "$ROOT/scripts/pane-agent.sh black"
|
||||
tmux split-window -v -p 15 -t chess:0 "tail -F $LOGS/backend.log"
|
||||
|
||||
# Give claude/codex ~12s to boot in their panes, then ask coordinator to
|
||||
# inject the first prompt to the white pane.
|
||||
( sleep 12 && curl -fsS -X POST http://127.0.0.1:7833/api/dispatch-first >/dev/null ) &
|
||||
|
||||
echo
|
||||
echo "[ai-chess] open: http://127.0.0.1:7833/"
|
||||
echo "[ai-chess] attach: tmux attach -t chess"
|
||||
echo "[ai-chess] first prompt fires in ~12s (after agents boot)"
|
||||
echo
|
||||
tmux attach -t chess
|
||||
|
||||
Reference in New Issue
Block a user