An open-source, faster Devin alternative
TypeScript
docs: describe connections as blue #85 leaves them — a pending row is re-checked whenever it is listed, so the page no longer tells people to chase the status route themselves; the caveat narrows to the case #85 deliberately does not cover, where a connected account stays connected after the grant is revoked until a call to it fails
Brian Reardon26ae16d0f989
diff --git a/docs/agents/services.mdx b/docs/agents/services.mdxindex 8df918d0..f4250634 100644--- a/docs/agents/services.mdx+++ b/docs/agents/services.mdx@@ -71,20 +71,15 @@ opencomputer connection list```bash APIcurl "$OC_API_URL/api/managed-agents/connections" \-H "x-api-key: $OPENCOMPUTER_API_KEY"--# The listing reports a stored status. To find out whether a `pending`-# account has since been authorized, ask the status route — it is the one-# that re-checks with the provider, and records the answer.-curl "$OC_API_URL/api/managed-agents/connections/google/status?service=gmail&label=support" \- -H "x-api-key: $OPENCOMPUTER_API_KEY"```</CodeGroup><Note>-`status` in the listing is stored, not live. An account someone authorized a-minute ago can still read `pending` there until something re-checks it. The CLI-does that for you; over the API, call the status route above. Agents are-unaffected — `listServices()` reconciles before it answers.+A connection that is not yet `connected` is re-checked with the provider each+time it is listed, so `pending` means what it says. A **`connected`** account+is not re-checked: if someone revokes access at the provider, it keeps reading+`connected` until the next call to it fails. Treat `connected` as "was working",+not "is working".</Note>**Disconnecting one.** The CLI takes the label or the id; the API takes the id@@ -270,7 +265,8 @@ collections rather than asking for them in one call.| `409 connection_alias_required` | Several accounts connected, no `label` given | Pass `label`; the message lists them || `403` from the service | The consent is narrower than the call needs | Reconnect the account with wider access || `listServices()` returns `[]` | The service is not declared | Add `useService("gmail")` |-| A connection stays `pending` | Nobody opened the link, it expired — or the listing's stored status is stale | `opencomputer connection list` re-checks for you; over the API call the status route |+| A connection stays `pending` | Nobody opened the link, or it expired | Send the link again with `connection add` |+| A `connected` account returns `401` | Access was revoked at the provider; the stored status has not caught up | Reconnect it — `connection add` with the same label || A header you set is ignored | It is not in the allowlist above | Nothing — it cannot be sent || Throws *managed connections are unavailable* | No connection layer | You are running outside the platform |