#!/usr/bin/env bash
set -euo pipefail
# Run from either checkout after starting its dev server with T3CODE_DEV_SEED=0.
# Configure Antigravity in Settings > Providers: add Antigravity, Gemini API key,
# any nonempty synthetic key, then Connect. Use agy 1.5.17.
# The dev server must inherit GOOGLE_GEMINI_BASE_URL for the test API endpoint.
# Pass an empty scratch workspace as the first argument.
workspace=${1:?Pass an empty scratch workspace}
node apps/server/src/bin.ts project add "$workspace" --title 'Question demo' --base-dir .t3
node apps/server/src/bin.ts thread start "$workspace" 'Use your ask_question tool now to ask exactly one multiple-choice question: Which package manager should this new TypeScript project use for installing dependencies and running scripts across the monorepo? The choices must be npm, pnpm, and yarn. Do not inspect files or implement anything. Ask the question and wait for my answer.' --title 'Package manager question' --provider antigravity --model gemini-4-neon --base-dir .t3 --json
# Open the returned thread in the paired web app, viewport 1280x800, dark theme.
# Close the thread details panel and sidebar. Wait for Input requested.
# Capture the question card and composer; compare two captures >=500ms apart.
# Expected: Question 1 header, complete question as wrapped main body text.
