Skip to content

Call Service - #733

Merged
motatoes merged 3 commits into
mainfrom
call-service
Sep 15, 2026
Merged

motatoes merged 3 commits into
mainfrom
call-service

Conversation

@breardon2011

Copy link
Copy Markdown
Contributor

The platform has served managed connections since August; the SDK had no client.
defineConnection.fetch() cannot emit the service key the supervisor routes on,
and runtime-set Authorization is dropped by FORBIDDEN_EGRESS_HEADERS.

The bug: a managed connection answers with {status, headers, body} wrapped in
a 200. callService returned that while documenting the opposite, so ok was
always true and .json() gave the wrapper. A Gmail sweep read messages off the
envelope, got undefined, and reported an empty mailbox that had unread mail.

listServices wraps {action:"list"} on the reserved opencomputer segment.
useService declares the grant: listSessionConnections filters on
deployment.connections, which only held HTTP connection ids, so a google
connection could never appear.

…, and adds listServices and useService so an agent can discover and declare the managed connections it uses:
…int in project.test.ts, so the resolution keeps all three: main's two model-selection tests and the managed-connection client test
Expose the connections page again and let operators add aliased Gmail, Calendar, and GitHub accounts without using the API directly. Reconcile pending OAuth links on return and require confirmation before disconnecting an account. Keep the inventory primary by moving creation into a focused dialog.
@motatoes
motatoes merged commit 4a04a65 into main Sep 15, 2026
4 checks passed
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.

2 participants