fix(agent-ui): keep chat open for status - #11739
Open
localai-org-maint-bot wants to merge 1 commit into
Open
Conversation
Agent Status replaced the chat route and unmounted its EventSource. Any response still in flight could then disappear from the conversation.\n\nOpen status in a separate tab so the chat keeps its live connection until the response completes.\n\nAssisted-by: Codex:gpt-5 [eslint]
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.
Description
This PR fixes #11702.
Agent Status previously replaced the chat route. That unmounted the page that owns the live EventSource, so a response still in flight could disappear. The Status action now opens in a separate tab and preserves the optional
user_id, leaving the active chat and its stream connected.The normal chat-switch path already writes the completed response to the chat ID that initiated the request, so this change stays focused on the remaining route-unmount failure.
Notes for Reviewers
Verification:
npm run buildeslint src/pages/AgentChat.jsx e2e/agents.spec.js(no errors; existing warnings remain in AgentChat)git diff --checkThe full
npm run lint -- --quietstill reports six existing hook-rule errors ine2e/coverage-fixtures.jsandsrc/pages/Chat.jsx.Signed commits