#!/usr/bin/env bash
set -eu
# Run from either checkout after vp i. Start its dev server with T3CODE_DEV_SEED=0
# and GOOGLE_GEMINI_BASE_URL set to the authorized API endpoint.
# In the real UI add Antigravity, sign-in method Gemini API key, any nonempty key.
# Wait for Authenticated, agy v1.5.24.
project_dir="$1"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Subagent tooltip proof' "$project_dir"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider antigravity --model gemini-4-neon --title 'Live subagent tooltip' "$project_dir" 'Call your native invoke_subagent tool exactly once with two subagents. Both must have TypeName "self" and Model "inherit" (uppercase M). Name them Subagent A and Subagent B. Each child must run sleep 90 using its shell tool, then reply done. Do not run sleep yourself. Launch both children together in one call.'
# Open the returned thread via /<environmentId>/<encodedThreadId> in the paired browser.
# Chromium viewport 1280x800, light theme. Record while both children run:
# hover Lineage Subagent A; expand "2 subagents"; hover list Subagent A.
# Both real runs emitted two invoke_subagent calls in one planner response.
# Check each child's PLANNER_RESPONSE model in its transcript.jsonl.
# Captures are scaled to CSS pixels and cropped to x=300,y=170,w=970,h=380,
# excluding environment labels. No content is replaced or fabricated.
