Repository navigation
feat: show your agent connecting and disconnecting at once on Your agent - #229
Open
artem-broccoli wants to merge 15 commits into
Open
artem-broccoli wants to merge 15 commits into
artem-broccoli wants to merge 15 commits into
Conversation
…ches, keeping each run's own event
…its for a task change
…est seed under its line limit
…ead again whenever it opens
…d already in flight
Base automatically changed from
artem/bro-262-never-lose-a-record-change-that-starts-a
to
main
November 15, 2026 06:23
…ent-shows-connect-and-disconnect-at # Conflicts: # docs/architecture.md # packages/api/drizzle/0038_processes.sql # packages/api/importRules.json # packages/api/src/core/processes/app/eventRunService.ts # packages/api/src/core/processes/app/processService.ts # packages/api/src/core/processes/app/startRunsOnEvents.int.test.ts # packages/api/src/core/processes/app/startRunsOnEventsAtScale.int.test.ts # packages/api/src/core/processes/app/workingCalendars.ts # packages/api/src/core/processes/db/processRunsTable.ts # packages/api/src/core/processes/domain/eventTrigger.test.ts # packages/api/src/core/processes/domain/eventTrigger.ts # packages/api/src/core/processes/domain/index.ts # packages/api/src/core/tasks/app/createTask.int.test.ts # packages/api/src/core/tasks/app/createTasks.ts # packages/api/src/core/tasks/db/taskRepository.ts # packages/api/src/modules/processes/app/dueRunService.ts # packages/api/src/modules/processes/app/registrations.ts # packages/api/src/modules/processes/app/runStarter.ts # packages/api/src/modules/processes/db/index.ts # packages/api/src/modules/processes/db/processRepository.ts # packages/api/src/modules/processes/domain/processDefinition.test.ts # packages/api/src/modules/processes/domain/processDefinition.ts # packages/api/src/modules/processes/domain/processRun.ts # packages/api/src/modules/processes/index.ts # packages/api/src/modules/processes/module.md # packages/api/src/modules/tasks/app/index.ts # packages/api/src/modules/tasks/app/registrations.ts # packages/api/src/modules/tasks/app/taskService.ts # packages/api/test/support/domainEvents.ts # packages/api/test/support/index.ts # packages/api/test/support/processService.ts # packages/api/test/support/seedProcess.ts # packages/api/test/support/seedTask.ts # packages/api/test/support/taskService.ts
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
Your agent now updates by itself. With the page open, it turns to the connected card the moment the person chooses Allow in their agent's app, and back to "You disconnected …" (or why the connection ended) the moment it ends, with no reload and no need to come back to the window. The dot on the menu item follows on every page.
GET /api/live. It carries only a nudge that the person's agent connection changed, never data; the page then reads its usual GraphQL queries again, so what a person may see is still decided there. A request without a session gets 401, and a nudge reaches only the streams of the person whose connection changed.agentAccess.connection_changedin the transaction that allows a connection or ends one (Disconnect, another agent replacing it, a password reset, 30 days unused). The stream sends it after the commit.Connected, without focusing or reloading the page:
Disconnected from elsewhere, live:
Evidence: report (PDF)
Testing
pnpm check, all integration (1562) and end-to-end (306) tests pass.pnpm dev(through the Vite proxy) and on the Docker image: a scripted OAuth agent connected and disconnected as the signed-in person while Your agent stayed open and unfocused; the page changed within a second each time. Not checked: a deployed ingress and real Claude or ChatGPT clients.To try it: open Your agent, connect Claude Code (
claude mcp add --transport http broccoli <address>, then/mcpand Allow) and watch the page switch without coming back to it; Disconnect in a second tab and watch the first.Release Notes: