aboutsummaryrefslogtreecommitdiff
path: root/tests/kill-race.sh
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-30 17:27:21 +0200
committerIgor Soarez <igor@soarez.org>2026-10-30 17:27:21 +0200
commitb0cfd10b80443d3f67d263ff4db177bb53cc90ed (patch)
tree957951350434f38da83457f5467b6c000e892867 /tests/kill-race.sh
parent91436536b69c10aa333c2b2978284b57cca3ed64 (diff)
reload pi agents on an old extension: versioned extension, control socket, menu item and reload-agents
Diffstat (limited to 'tests/kill-race.sh')
-rwxr-xr-xtests/kill-race.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kill-race.sh b/tests/kill-race.sh
index 388c297..d85f654 100755
--- a/tests/kill-race.sh
+++ b/tests/kill-race.sh
@@ -8,7 +8,7 @@ r() { tmux -u -L $R "$@"; }
mkdir -p $D/bin; printf '#!/bin/sh\nexec sleep 100000\n' > $D/bin/pi; chmod +x $D/bin/pi
r -f /dev/null new-session -d -s a -n w1 $D/bin/pi; r new-session -d -s b -n w2 $D/bin/pi
P=$(r display -p -t a:w1 '#{pane_id}')
-start() { DINGGER_TMUX_SOCKET=$R DINGGER_AGENT_SOCKET=$D/hook.sock DINGGER_STATE_DIR=$D/state $BIN watch --interval-secs 30 --no-sounds --no-notifications >/dev/null 2>&1 & DP=$!; for _ in $(seq 50); do [ -S $D/hook.sock ] && break; sleep 0.05; done; }
+start() { PI_CODING_AGENT_DIR=$D/pi-agent DINGGER_TMUX_SOCKET=$R DINGGER_AGENT_SOCKET=$D/hook.sock DINGGER_STATE_DIR=$D/state $BIN watch --interval-secs 30 --no-sounds --no-notifications >/dev/null 2>&1 & DP=$!; for _ in $(seq 50); do [ -S $D/hook.sock ] && break; sleep 0.05; done; }
hook() { python3 -c "
import json,socket; s=socket.socket(socket.AF_UNIX); s.connect('$D/hook.sock')
s.sendall((json.dumps({'method':'pane.report_agent','params':{'pane_id':'$P','agent':'pi','state':'$1'}})+'\n').encode())"; }