#!/usr/bin/env bash
# Run from each checkout after starting T3CODE_DEV_SEED=0 T3CODE_ENVIRONMENT_LABEL=Evidence vp run dev.
# Argument: an empty scratch git repository, shared by both fresh app databases.
set -eu
project=$1
node apps/server/src/bin.ts project add "$project" --title stop-send-demo --base-dir .t3
node apps/server/src/bin.ts thread start "$project" 'Run this exact command in the foreground using the Bash tool: for i in $(seq 1 300); do echo tick $i; sleep 1; done' --title 'Stop then send' --provider claudeAgent --model claude-haiku-5-5 --base-dir .t3 --json
# Open the returned thread directly in the paired browser. Wait for Running command.
# Record the tab, evaluate stop-send-driver.js, and retain the result.
# Recorded submission delays: base 300.8 ms; head 417.3 ms. Both reported phase ["Stopping"].
