Skip to content

feat(agents): add or remove one connector on an agent - #7903

Open
benjaminshafii wants to merge 1 commit into
feat/named-computer-grantsfrom
feat/agent-connector-changes
Open

benjaminshafii wants to merge 1 commit into
feat/named-computer-grantsfrom
feat/agent-connector-changes

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

One connector can be added to, or removed from, an agent that already exists, in one call or with openwork agents connectors add|remove. Off by default behind agentConnectorChanges.

What problem does it solve?

Changing which connectors an agent uses meant sending the agent's whole tool settings again, which is easy to get wrong and overwrites everything else.

What was the situation before?

Before After
Add one connector Resend every tool rule One call; other rules untouched
Owner asks Applied Applied from the next run
Manager asks Change request for the owner Same: waits for the owner's yes

How is this implemented?

  • POST /v1/personal-agents/:id/connectors and DELETE /v1/personal-agents/:id/connectors/:connectionId in routes/personal-agents/permissions.ts; logic in personal-agents/connector-changes.ts.
  • Owner or manager only. Adding requires that the caller and the agent's owner can both use the connector, the owner has connected it, and neither the organization nor the agent's own setup forbids it. Everything is looked up in the caller's organization.
  • The owner path writes one rule in a transaction; the manager path files the existing kind of change request.
  • Removing turns the connector off and keeps the agent's per-tool rules for it.
  • openwork agents connectors list|add|remove.
  • Flag and doc: packages/features/src/flags/agent-connector-changes.ts, docs/features/agent-connector-changes/README.md.

What else changed?

Release note

none

Evidence

  • No E2E spec: API and CLI only. personal-agent-connectors.api.test.ts (9 tests against MySQL) and the CLI tests.
  • Not tested: the personal_agent_connector_not_ready and _ambiguous refusals.
  • Known limits: a manager's request carries the agent's whole tool settings, as existing change requests do, so approving it can overwrite a change made while it waited; a one-time approval already given for a tool still works once after the connector is removed (in the feature doc).

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Dec 1, 2026 3:19am UTC
openwork-den Ready Ready Preview Dec 1, 2026 3:19am UTC
openwork-landing Ready Ready Preview, v0 Dec 1, 2026 3:19am UTC

Request Review

This branch was successfully deployed

3 active deployments
Preview – openwork-app — eb29f9e8 Deployed Dec 1, 2026 by vercel[bot]
Preview – openwork-den — eb29f9e8 Deployed Dec 1, 2026 by vercel[bot]
Preview – openwork-landing — eb29f9e8 Deployed Dec 1, 2026 by vercel[bot]
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