feat: Add CommandOutputViewer component and integrate it into ChatRow #2326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This pr will fix Webview crashed because long running terminal command and has long terminal console output
https://discord.com/channels/1332146336664915968/1356673356736368893
Implementation
Implement new Commend for using react-virtuoso then replace it with code-block component
Video
How to Test
Get in Touch
Important
Adds
CommandOutputViewercomponent for virtualized command output rendering and integrates it intoChatRow.tsx, replacingCodeBlock.CommandOutputViewerinCommandOutputViewer.tsxusingreact-virtuosofor virtualized rendering of command outputs.CodeBlockwithCommandOutputViewerinChatRow.tsxfor displaying command outputs.CommandOutputViewer.test.tsxto test rendering with different output sizes, including empty and large outputs.This description was created by
for 92a91da1ba89f58ba740f4bdf6af62fec2d019b9. It will automatically update as commits are pushed.