Repository navigation
feat(studio): connector scope, MCP connectors, run setup, Runs timeline, e2e repair - #1208
Conversation
The shell env now carries only the GitHub credentials, and only when a github integration is on the agent. buildRunnableAgent takes connectedAccounts (default true); evals and served agents pass false. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t message Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ll scripts Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… row Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ton and connectors Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…y callers skip the legacy builder Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…oval pending Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ven and did Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
Approving.
This PR delivers the follow-up studio UX/DX items from #1206/#1207. The changes are well-scoped and consistent:
Security – The shell tool now receives only GitHub credentials (GITHUB_TOKEN/GH_TOKEN), and only when GitHub is attached; other connector secrets (JIRA, etc.) never reach it. Evals and served agents get connectedAccounts: false, and flow agents throw a clear error when evaluated rather than silently running as plain agents.
Connectors & MCP – A new withMcpConnectors function adds remote MCP servers with approval: 'always', deferLoading: true, optional: true and optional token references via secrets. connectorShellEnv is correctly narrowed to GitHub-only env vars. The connectionStates / skippedConnections helpers correctly report incomplete vs. disabled connections for the run summary.
Runs – Every run records a setup summary (accounts, MCP servers, tools, skipped) that persists with the chat and appears in the new Runs timeline (filter chips, run header, timeline of setup/input/tool calls). The e2e tests confirm the setup line, expansion, and trigger provenance all work.
Polish & DX – Five window.confirm replaced by in-app dialogs, Run button shows "Run started" marker instead of a user message, deploy --local refuses stale bundles and exits non-zero on unhealthy hosts, test:all added to package.json, and the e2e suite is repaired (11/11 passing).
All checks pass: typecheck, lint, lint:imports, api:check (5 pre-existing warnings), Studio UI 204 tests, server 202 tests, SDK CLI 34 tests, and e2e 11 passed.
No issues found that require changes.
What
Follow-ups to #1206 and #1207, plus the first Studio UX and DX items.
Security
connectedAccounts: false).Connectors and MCP
approval: 'always'.Runs
Edit with AI
Polish and fixes
window.confirmcalls replaced by the in-app dialog.withAgentLock re-entered.DX
lousho deploy --localrefuses a Studio bundle older than its sources, and exits non-zero when a deployed host is not healthy.npm run ship:studio,test:all, and a "Working on Studio" README section.Not in this PR
Checks
🤖 Generated with Claude Code