#!/usr/bin/env bash
set -euo pipefail
# Supply the checkout, isolated T3 home, synthetic git project, and initial model.
# Start the checkout first with T3CODE_DEV_SEED=0 vp run dev.
: "${CHECKOUT:?}" "${DEMO_PROJECT:?}" "${T3_HOME:?}" "${INITIAL_MODEL:?}"
cd "$CHECKOUT"
node apps/server/src/bin.ts project add --base-dir "$T3_HOME" --title 'Steering demonstration' "$DEMO_PROJECT"
node apps/server/src/bin.ts thread start --base-dir "$T3_HOME" --provider claudeAgent --model "$INITIAL_MODEL" --title 'Live model steering' "$DEMO_PROJECT" 'Run the shell command sleep 25 four times sequentially as four separate tool calls. After each, say completed step N. Continue until all four are done. If a message arrives during this work, answer it before continuing.' --json
# Open the returned thread in the paired web client.
# During the running turn, open the composer model picker and select the target model.
# Type exactly: what is your exact model id right now?
# Click the composer button labelled "Steer message".
# Compare the response identifier with the picker selection.
# Repeat unchanged against the base and head, with separate fresh T3 homes.
