Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/28961-connector-connection-status-doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@objectstack/spec': patch
---

docs(spec): `ConnectorConnectionState.status` no longer says a connection with no refresh token is marked because its access token expired

Clause-②: no
Metadata-protocol: none

Comment only. The `reconnect_required` JSDoc said such a connection "keeps nothing to renew an expired access token with". A refresh also runs on a cache miss (a fresh replica, or a `revision` another replica moved) and on a dispatch's 401, so a connection with no refresh token, or no client to refresh with, is marked even while its access token is still valid. The JSDoc now reads "keeps nothing to renew an access token it has to renew with", the wording the runtime's own `markReconnectRequired` doc and the `sys_connector_connection.status` description use, and the sense of the `status_reason` the runtime stores ("an access token the connection has to renew cannot be renewed").
6 changes: 3 additions & 3 deletions packages/spec/src/contracts/automation-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,9 @@ export interface ConnectorConnectionState {
* dispatches nothing for this organization); `connected`; or
* `reconnect_required` — the grant stopped working: the authorization
* server refused it on refresh, the connection keeps nothing to renew an
* expired access token with (no refresh token was issued, or no client to
* refresh with), or the upstream refused the connection's token while an
* `mcp` instance discovered its tools. `statusReason` says which.
* access token it has to renew with (no refresh token was issued, or no
* client to refresh with), or the upstream refused the connection's token
* while an `mcp` instance discovered its tools. `statusReason` says which.
*/
status: 'not_connected' | 'connected' | 'reconnect_required';
/** Why the grant stopped working, when `status` is `reconnect_required`. */
Expand Down
Loading