Skip to content

fix(webchat): display assistant replies as text - #156

Merged
adriannoes merged 2 commits into
developmentfrom
fix/webchat-reply-display
Nov 26, 2026
Merged

adriannoes merged 2 commits into
developmentfrom
fix/webchat-reply-display

Conversation

@adriannoes

@adriannoes adriannoes commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Display each assistant reply as it arrived, including JSON, quotes, and HTML tags.
  • Open /ws?view=chat for the chat page. The gateway sends direct replies to this connection and keeps provider status updates on the standard /ws connection.
  • Preserve the current reply format and the 32 KiB text limit for native WebSocket clients.

This branch includes #151 for browser pairing. Merge #147 for complete dashboard downloads and #151 for pairing before this change. Review the WebChat fix on its own.

The browser tests used dashboard files built on Ubuntu. On macOS, the existing build script can remove + operators from JavaScript when it uses BSD sed.

Test plan

  • Before the fix, Chromium received each reply and the chat stayed blank. With the related gateway changes and this fix, all three replies appeared. HTML tags appeared as text.
  • Switched providers to trigger a real status update. The dashboard received it and the chat skipped it. With the Ubuntu ARM64 gateway, Chromium displayed a reply containing the same 241 bytes of JSON.
  • A native client received the original reply as plain text. The chat displayed all 32,767 bytes of a long reply.
  • test_ws, test_ws_rx, and test_web_dashboard passed with the related gateway changes.
  • On Ubuntu 24.04 ARM64, make static and CI=true GATEWAY=1 make -j3 test passed for this branch.

@adriannoes adriannoes added the bug Something isn't working label Nov 26, 2026
@adriannoes adriannoes self-assigned this Nov 26, 2026
@adriannoes adriannoes added the review: ready for approval The code is ready for the required GitHub approval. label Nov 26, 2026
@adriannoes
adriannoes merged commit 6d5492f into development Nov 26, 2026
1 check passed
@adriannoes
adriannoes deleted the fix/webchat-reply-display branch November 26, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working review: ready for approval The code is ready for the required GitHub approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant