Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented May 8, 2025

Chat UI bundle contains unicode, which is incorrectly loaded as ASCII when packaged as a webpack bundle.

On Flare LSP request aws/chat/openTab, we forward the message to Mynah UI, which subsequently fails if the body contains Java-formatted markdown as it triggers the incorrectly parsed unicode.

The Flare chat wrapper subsequently does not respond with the onOpenTab callback and the LSP times out and exits the process.

Fix by explicitly loading assets as UTF-8

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Chat UI bundle contains unicode, which is incorrectly loaded as ASCII when packaged as a webpack bundle.

On Flare LSP request `aws/chat/openTab`, we forward the message to Mynah UI, which subsequently fails if the body contains Java-formatted markdown as it triggers the incorrectly parsed unicode.

The Flare [chat wrapper](https://github.com/aws/language-servers/blame/547ecafb561fd3d6bf7a264def829160901dd23a/chat-client/src/client/mynahUi.ts#L989-L991) subsequently does not respond with the `onOpenTab` callback and the LSP times out and exits the process.

Fix by explicitly loading assets as UTF-8
@rli rli requested a review from a team as a code owner May 8, 2025 01:56
@github-actions
Copy link

github-actions bot commented May 8, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@rli rli merged commit 475dfc8 into feature/q-lsp-chat May 8, 2025
11 of 16 checks passed
@rli rli deleted the rli-patch-13 branch May 8, 2025 18:13
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