Skip to content

Fix chat UI stuck loading after first message send failure#2110

Open
romanlutz wants to merge 2 commits into
microsoft:mainfrom
romanlutz:romanlutz-fix-chat-send-loading-bug
Open

Fix chat UI stuck loading after first message send failure#2110
romanlutz wants to merge 2 commits into
microsoft:mainfrom
romanlutz:romanlutz-fix-chat-send-loading-bug

Conversation

@romanlutz

Copy link
Copy Markdown
Contributor

Problem

When the first message send fails with an HTTP 500 error, the chat UI gets stuck on 'Loading conversation...' indefinitely instead of displaying the error to the user. Users cannot recover or retry.

Root Cause

In ChatWindow.tsx, the send error handler wasn't marking the failed conversation as 'loaded', leaving awaitingConversationLoad in a truthy state. This caused MessageList to render the loading placeholder instead of the error message bubble.

Solution

Modified the send error handler in ChatWindow.tsx to explicitly mark the conversation as loaded before showing the error bubble.

Changes

  • frontend/src/components/Chat/ChatWindow.tsx: Added setLoadedConversationId() in catch block (lines 349-363)
  • frontend/e2e/errors.spec.ts: Added regression test at line 268

Testing

✅ Unit tests: 63 pass
✅ Lint: 0 warnings
✅ Build: successful
✅ E2E regression test: passes

Copilot AI added 2 commits June 30, 2026 12:07
Ensure ChatWindow marks the active conversation loaded when a send fails after attack creation, preventing indefinite 'Loading conversation...' state. Add an E2E regression covering first-send 500 failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants