#!/usr/bin/env bash
# Run from either commit's dependency-installed checkout, with its dev server
# started using T3CODE_DEV_SEED=0 vp run dev and a fresh .t3 database.
set -eu
workspace=$(mktemp -d)
git init --quiet --initial-branch=main "$workspace"
node apps/server/src/bin.ts project add "$workspace" --title python-highlighting --base-dir .t3
node apps/server/src/bin.ts thread start "$workspace" \
  "Run exactly these two commands as TWO SEPARATE command executions: python3 --check-hash-based-pycs always -c 'print(42)' and python3 -c 'print(42)'. Do not modify files. Then say Done." \
  --title 'Python inline highlighting' --provider codex --model gpt-6-luna --wait --json --base-dir .t3
# In the paired web client (1280x800, light theme), open the returned thread.
# Hide the sidebar and thread details panel. Expand Worked for, Ran 2 commands,
# and BOTH command rows (match their exact titles, not the prompt containing them).
# Both command outputs must be 42. Inspect the command body, not its row title.
# Base: flagged print(42) remains green; control print is purple, 42 is teal.
# Head: both payloads have purple print and teal 42.
# Move the pointer away, blur focus, and compare two captures >=500ms apart.
