Repository navigation
feat(platform): tell a person when their agent is disconnected - #4913
Merged
Merged
Conversation
When something other than the person ends a coding agent they connected - a refresh token used twice, a changed password or sign-in method, an owner or admin - they find a notice in their bell, in the organization the connection was to, saying which agent and why (an admin by name). Their own disconnect, a seat that ended and an erasure tell nothing; it is never e-mailed, and a notice that cannot be written never undoes the disconnect. The quiet ending stays in end.ts for the membership cascade and the erasure pass, which a source guard holds to those two; every other ending comes through end-and-tell.ts.
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A person now finds out why a coding agent of theirs stopped working. When something other than themselves disconnects an agent they connected, they get a notice in their bell, in the organization the connection was to, saying which agent was disconnected and why. Sign-in stays off unless an operator turns it on, so nothing changes for a deployment until then.
end.tsstays the quiet ending (stamp, tokens, audit row, hint). The newend-and-tell.tswraps it and is what every other ending calls, so a new way to end an agent tells the person unless someone decides here that it must not; a source guard holds the quiet one to the membership cascade and the erasure pass. It also keeps the UI suites' import graph (and their turbo inputs) free of the collaboration domain.agent_connection_endedwith its link case, both URL builders, and en/de/fr copy (a title and three bodies).Rule
AGCONN-R20(agent connections). Not in this PR: telling the person when an agent gains write access — they have just allowed it on the consent page and the audit log records it; that is better decided with the consent page work.Checklist
bun run checkpasses — the gate ran locally on the committed tree. The one red isapp/routes/dashboard.test.tsx("takes a signed-in tab to sign-in on a lapsed-session answer"), which fails identically onmainand does not touch this change.bun run lint:sast— runs in the commit hook.inbox.yml), registered inkeys-dynamic.yml.Test plan
checkAgentLifecycleandcheckAgentConnections: a refresh reuse leaves Ada one notice in each organization, naming the app, as the platform's act, and Mia (whose sign-in was not touched) none; Mia's own password change, an admin's 2FA reset and password seizure, and a forced rotation each leave the account notice, a refused change none; an owner's disconnect of Ada's agent leaves a notice naming the owner and Ada's own disconnect none; a seat that ended leaves none; an erasure writes none for the erased person.checkNotificationEmailSinkfails 2 checks identically on cleanmainwhen run on its own (A/B: detached at the parent commit); it is left out of the evidence above.