#!/usr/bin/env bash
# Portable transcript of the CLI seeding commands used on each checkout.
# Run with CHECKOUT set to the checkout and DEMO to a new empty git repository.
set -euo pipefail
cd "$CHECKOUT"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Stop cancellation demo' "$DEMO"
node apps/server/src/bin.ts thread start --base-dir .t3 --title 'Workflow Stop proof' --provider claudeAgent --model claude-haiku-5-5 "$DEMO" 'Use the Workflow tool to launch a workflow named ping-localhost with exactly one agent. That agent must run the exact Bash command ping -c 150 127.0.0.1 in the foreground, not backgrounded, with timeout 180000. Do not run the ping in the main thread. Start the workflow now and wait for it.'
# Browser: open the returned thread, wait for the member ping process to run,
# start recording, click [aria-label="Stop workflow ping-localhost"],
# open the member chat, expand Worked for, Used 1 tool, then Tool.
# Screenshot the denial output and member footer.
node apps/server/src/bin.ts thread start --base-dir .t3 --title 'Genuine failure control' --provider claudeAgent --model claude-haiku-5-5 "$DEMO" 'Run exactly this Bash command now: exit 3. Do not append echo, do not wrap it, and do not retry. Report its failure.'
# Browser: open thread; expand Worked for, Ran 1 command, exit 3.
node apps/server/src/bin.ts thread start --base-dir .t3 --title 'Main thread Stop control' --provider claudeAgent --model claude-haiku-5-5 "$DEMO" 'Run this exact Bash command in the foreground with timeout 180000, do not background it: ping -c 120 127.0.0.1'
# Browser: open thread, wait for ping, record, click [aria-label="Stop generation"].
# Both servers were started with T3CODE_DEV_SEED=0 vp run dev.
# Browser viewport 1280x800 CSS pixels, 2x device scale, light theme.
# Machine identity hidden in stills and masked in workflow videos; no tool
# output, status, command, or workflow state was modified.
