Say plainly when the connector's agent was disconnected
When someone disconnects an agent in Basecamp, or connects it on another computer, its running connector stops within a minute. That's right, but the last thing it printed was the event feed's internals:
Error: intake: event feed terminal: authorization_failed: 3 consecutive connection-level authorization failures: event feed mint failed (unauthorized)
Now it says what happened and how to fix it, in the words guided setup already uses:
Error: Ryan Singer (agent) was disconnected in Basecamp, or connected on another computer
Reconnect it: basecamp connect setup -P agent
-
The connector recognizes the disconnect however it arrives:
- The event feed ends with
authorization_failed. That also counts forbidden answers, so the connector first asks Basecamp whether it still takes the agent's credential, and only calls it a disconnect if it doesn't. - A token renewal Basecamp refuses (
auth.ErrAgentCredentialRefused), which the feed reports as a failed mint or poll. - A connector started after the disconnect meets the refusal when it reads who it is: a refused token renewal, or a 401 for a token minted before the disconnect, which is still cached (disconnecting doesn't revoke tokens). It says "Your agent was disconnected…", since reading the name is what failed.
Only an Agent is told it was disconnected. A bot user whose login was revoked keeps its own error and remedy.
It returns an auth error with the reconnect hint, and logs the feed's own words as an error line.
- The event feed ends with
-
The ledger records a new
disconnectedconnection state.basecamp connect statusopens with "Disconnected: … Reconnect it: basecamp connect setup -P ", and its summary starts with "disconnected". -
Every other way the connector can stop keeps its current output.
-
The basecamp-connect skill explains the new status line.
Checked live against a local Basecamp, with the plain message each time: a disconnect while the connector ran, a disconnect met at a token renewal (poll_failed), and a connector started after a disconnect, both with an expired token and with a cached one. Status showed the same, and the printed command reconnected the agent with one approval.