Conversation
- add an in-process event bus and a GET /api/events SSE endpoint that fans a change notice out to every open page - publish a notice from the envelope route after a successful management write, skipping presence, chat, recovery and the event stream itself
- open one EventSource per tab at the app shell and revalidate the active routes on a change notice, coalescing a burst into one refresh - replay the matching in-tab event so components that hold their own state react to an external change like a local one - add a models-changed event and re-fetch the model catalog in the composer picker and the models settings page when it fires
- when deleting the open project or session, await the navigation to a live URL before revalidating, so the refresh no longer aborts the switch or flashes the deleted route's 404
- add a projects-changed event and fire it from the bridge for project create/rename/delete, excluding the nested project settings routes - re-fetch on the change stream in the composer project and search pills, the project and hub MCP/skill panels, the memory doc card, and the personalization and search settings pages
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
Server-sent change stream
GET /api/eventsSSE endpoint that fans a change notice out to every open pageEventSourceper tab at the app shell and revalidate the active routes on a change notice, coalescing a burst into one refresh; replay the matching in-tab event so components that hold their own state react to an external change like a local oneDelete flow
Test
pnpm typecheckpytest tests/test_state_lifecycle_api.py tests/test_chat.py(111 passed)