Skip to content

Keep data for plain text fallback in debugger StreamPane - #574

Closed
valerybokov wants to merge 1 commit into
apache:trunkfrom
valerybokov:fix-StreamPane-plain-text-fallback
Closed

valerybokov wants to merge 1 commit into
apache:trunkfrom
valerybokov:fix-StreamPane-plain-text-fallback

Conversation

@valerybokov

Copy link
Copy Markdown

The nice decoded view read the whole stream when trying to parse it as a content stream, so if parsing failed, the plain text fallback got an already consumed stream and showed an empty document. Read the data once and use it for both.

Assisted by Claude Code.

The nice decoded view read the whole stream when trying to parse it as a
content stream, so if parsing failed, the plain text fallback got an
already consumed stream and showed an empty document. Read the data once
and use it for both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@THausherr

Copy link
Copy Markdown
Contributor

This is helpful, I did notice that the pane was white after an error, but it didn't me bother enough to research the cause, thanks for doing this. I added a few more changes to keep the code short.

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