Skip to content

fix(agent-ui): keep chat open for status - #11739

Open
localai-org-maint-bot wants to merge 1 commit into
masterfrom
fix/preserve-chat-streams
Open

fix(agent-ui): keep chat open for status#11739
localai-org-maint-bot wants to merge 1 commit into
masterfrom
fix/preserve-chat-streams

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

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 build
  • eslint src/pages/AgentChat.jsx e2e/agents.spec.js (no errors; existing warnings remain in AgentChat)
  • git diff --check

The full npm run lint -- --quiet still reports six existing hook-rule errors in e2e/coverage-fixtures.js and src/pages/Chat.jsx.

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent response disappears when navigating away via "Status" or switching chats in chat section

1 participant