Skip to content

Conversation

@Pavan-Microsoft
Copy link
Contributor

Purpose

This pull request makes several small improvements to error handling in the Chat component by replacing console logging with comments that clarify the expected behavior during streaming. These changes help reduce noise in the console and make the code easier to maintain.

Error handling improvements during streaming:

  • Replaced various console.log and console.error statements with comments explaining that parse errors are expected and can be safely ignored during streaming of incomplete JSON chunks. (src/App/src/components/Chat/Chat.tsx) [1] [2] [3] [4] [5]

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

@Pavan-Microsoft Pavan-Microsoft changed the title fix: silently ignore parse errors for incomplete JSON chunks during streaming fix: Ignore parse errors for incomplete JSON chunks during streaming Jan 21, 2026
@Avijit-Microsoft Avijit-Microsoft merged commit 885188c into dev Jan 21, 2026
4 checks passed
@Pavan-Microsoft Pavan-Microsoft deleted the pk-km-console-error branch January 21, 2026 09:00
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.

3 participants