{
  "description": "Successful real-app interactions issued through preview_act; independent fresh base/head databases, synthetic project only. Captures precede supplementary threads. No provider responses mocked.",
  "environment": {"surface":"web dev server", "viewportCss":"1280x800", "devicePixelRatio":2, "theme":"dark", "openCodeVersion":"2.3.0", "initialServerUrl":"", "modelCount":131},
  "setupUi": ["Settings > Providers > Add provider > OpenCode", "Use the isolated OpenCode 2 binary wrapper, empty server URL and password", "Wait for Authenticated, v2.3.0 and 131 models", "Open new thread in Agent selection demo", "Close thread details panel"],
  "bothSides": [
    {"action":"click", "selector":"button[aria-label^='Claude Haiku']"},
    {"action":"type", "selector":"input[placeholder='Search models...']", "text":"Claude Haiku 4.5", "clear":true},
    {"action":"click", "selector":"[role=option]:has-text('Claude Haiku 4.5 (latest)')"},
    "Reopen picker as needed; wait for popup state after each action",
    "Choose Reasoning High",
    "Look for Agent. Base has none. Head: open Agent, choose researcher, reopen submenu so researcher is visibly checked",
    "Wait until two screenshots more than 500 ms apart are byte-identical; save matched empty-draft stills",
    "Switch to Claude Haiku 5.5 (same on both sides), choose High",
    "Look for Agent again. Base has none. Head: choose researcher again and show it checked",
    {"action":"press", "key":"Escape"},
    {"action":"press", "key":"Escape"},
    {"action":"type", "selector":"[contenteditable=true]", "text":"Reply with one short sentence: hello.", "clear":true},
    {"action":"click", "selector":"button[aria-label='Submit message']"},
    "Wait for completed Hello! reply. Stop recording only after the response has rendered",
    "Read only the corresponding native OpenCode session messages: base build, head researcher"
  ],
  "filteredPlanDefault": ["Add isolated OpenCode 1.19.5 provider with Build hidden and researcher primary", "Confirm real discovered descriptor is Plan(default), Researcher; currentValue=plan", "New empty draft, choose that provider's Haiku 4.5 latest without choosing an agent", "Collapse sidebar on both sides, close details, open picker, search Claude Haiku 4.5, open Agent", "Base has Researcher checked without choosing it; head has no current agent and Researcher unchecked", "Capture stable stills and recordings"],
  "unsetSelection": ["New empty draft, close details and collapse sidebar", "Seed model selection through useComposerDraftStore.setModelSelection(draftId, {instanceId:'opencode_2',model:'anthropic/claude-haiku-5-5',options:[{id:'variant',value:'high'}]}, {replaceOptions:true}); agent is absent", "Open picker. Head: open Agent to show Build Default checked, do not choose an option. Base: no Agent", "Close picker, send same greeting through UI, wait for completed reply", "Read native session messages; both are build"],
  "discoveryFailureHeadOnly": ["Run real OpenCode 2 server behind fault-proxy.mjs and configure provider server URL/password", "First successful /api/agent read populates choices; ensure workspace snapshot is populated", "Leave Agent submenu open with researcher selected", "Set proxy /control?mode=failure, run actual serverEnvironment.refreshProviders command for opencode_2; confirm proxy served /api/agent HTTP 503", "Set mode=timeout, refresh again; confirm /api/agent request closes after discovery timeout", "Agent submenu remains Build + researcher, researcher checked; capture stable screenshot/video and sanitized status transcript", "Restore mode=ok"],
  "notCovered": "Plan-toggle interaction: neither tested web composer exposes a Plan toggle; no RPC-only turn is presented as UI proof."
}
