Patch Changes
- d4bf49c: Clear
isRunningand aborted stream controllers when a superseding send fails prior to startingrunStream, and ensurecancel()clearsisRunningafter draining the in-flight run. - d4bf49c: Keep the composer interactive during running and paused turns: Cancel only when empty, Send supersedes the prior client stream without cancelSession (preserving superseded in-flight turns in the transcript), and stacked pause chrome is abandoned after a later user message. Hosts that override ComposerSendButton and still branch only on isRunning should update to use hasContent.
- 2b76ce3: Add Environments page for sandbox environment CRUD (
/environments), with UI Form and YAML editors, sidebar Envs nav, and a SandboxEnvironmentServer port. - 5b7abb6: Avoid throwing agentSpec error when switching chats or rendering immutable sessions in Chat History.
- 5b7abb6: Prevent duplicate assistant message IDs when a turn stream finishes on mcp.auth_required without model messages.
- 6813758: On refresh mid-turn, baseline all prior root model messages for a new user tip so the previous turn's content does not leak into the resumed stream.
- 5b7abb6: Add sandbox-environment CRUD (tables, PUT upsert, subject ownership, soft-delete). Versions land as
pendingfor a future controller. AgentSpecconfig.sandbox.environment_namenames a caller-owned env; namedefaultis reserved; delete returns 409 while agents reference it. Turn create clones the env snapshot (when built) and applies resources, env vars, and networking. - 5b7abb6: Use session detail API metrics for the agent session strip Turns/Duration/Cost instead of list-row hints or turn-by-turn aggregation. Include optional totalCostInUsd on TurnDoneMetrics so turn.done cost matches the wire contract.
- 2b76ce3: Update SandboxEnvironmentStatus from 'active' to 'ready' to align with backend environment version readiness, remove static default environment injection from draft selectors, fix sandbox provider readiness check latching false on EnvironmentsPage, and drain all sandbox environment pages with limit up to 1000 in agent draft pickers.