Skip to content

feat(studio): connector scope, MCP connectors, run setup, Runs timeline, e2e repair - #1208

Merged
LinuxDevil merged 19 commits into
mainfrom
fix/studio-followups-wave1
Nov 19, 2026
Merged

LinuxDevil merged 19 commits into
mainfrom
fix/studio-followups-wave1

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

What

Follow-ups to #1206 and #1207, plus the first Studio UX and DX items.

Security

  • The shell tool gets GitHub credentials only, and only when the agent has GitHub attached. No other connector secret reaches it.
  • Evals and served agents no longer get connected accounts or Profile MCP connectors (connectedAccounts: false).
  • Flow agents fail with a clear error when evaluated or served, instead of running as plain agents that ignore the flow.

Connectors and MCP

  • Profile → Connectors: each row records when it was last verified and has a Verify action; a failed re-check shows on the row. Save-time verification is unchanged.
  • New "MCP connectors" list (remote URL + optional token). Attached to chat and trigger runs by default, deferred, optional, and with approval: 'always'.
  • Every run records a setup summary: connected accounts, MCP servers, tools, and what was skipped and why. Shown at the top of the chat, in Logs, and persisted with the chat.
  • Agent cards and the overview show which accounts and MCP connectors an agent reaches.

Runs

  • Runs is a list beside a timeline: filter chips with counts, a run header (trigger, times, tokens, cost, Stop), and a timeline of setup, input, assistant messages and tool calls. Works without the observe daemon.

Edit with AI

  • A failed draft shows the validation reason. Doc searches are capped at three per turn.

Polish and fixes

  • Five window.confirm calls replaced by the in-app dialog.
  • The Run button shows a "Run started" marker instead of posting "Run the agent." as a user message.
  • The top bar keeps "Open trace" and the MOCK badge visible with an approval pending.
  • Version summaries no longer fail with withAgentLock re-entered.

DX

  • lousho deploy --local refuses 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.
  • The e2e suite is repaired (it failed 5 of 5 on main) and covers the new behaviour.

Not in this PR

  • Flow agents still get no connected accounts; flow runs still use the legacy builder.
  • A flow agent with a channel trigger still runs as a plain agent.
  • Ejected agents do not keep connector tools (needs an agent-directory format change).

Checks

  • Studio UI: 204 tests. Studio server: 202 tests. SDK CLI: 34 tests.
  • e2e: 11 passed.
  • typecheck, lint, lint:imports, api:check clean (5 pre-existing lint warnings).

🤖 Generated with Claude Code

LinuxDevil and others added 19 commits November 19, 2026 12:16
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>

@lousho-ai lousho-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@LinuxDevil
LinuxDevil merged commit d4c8253 into main Nov 19, 2026
6 checks passed
@LinuxDevil
LinuxDevil deleted the fix/studio-followups-wave1 branch November 19, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant