-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(tarko-agent-ui): replaced generic tool renderer with terminal-style renderer #1594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for agent-tars-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for tarko ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
660d8f8 to
511bfef
Compare
4 tasks
…erminal-style CodeEditor - Remove entire generic renderer directory and complex components - Replace GenericResultRenderer with simple TerminalRenderer using CodeEditor - Move still-used components (MessageContent, ToggleSwitch) to shared directory - Update all import statements to use new shared components - Simplify fallback rendering to clean terminal-like display
…and JSON highlighting - Replace CodeEditor with TerminalOutput component for consistent styling - Add syntax highlighting for tool commands and arguments - Improve dark mode visibility with proper terminal colors - Add JSON highlighting for structured data display - Align styling with CommandResultRenderer for consistency
…nd single block layout - Merge arguments and output into single terminal block - Remove redundant Tool Arguments/Tool Output labels - Add proper JSON syntax highlighting with color coding - Ensure JSON formatting with stringify null 2 - Maintain consistent terminal styling with CommandResultRenderer
…minal renderer - Replace custom JSON highlighting with existing CodeEditor component - Remove redundant JsonHighlight component and use project's standard solution - Maintain terminal styling while leveraging highlight.js for proper JSON syntax highlighting - Hide CodeEditor header and status bar to preserve terminal appearance - Ensure transparent background integration with terminal theme
- Add JSON parsing and re-formatting for string outputs - Apply JSON.stringify(data, null, 2) to both arguments and output - Maintain proper indentation for better readability - Handle both object and string-based JSON data consistently
…ghting - Remove conditional JSON detection to ensure all tool outputs use CodeEditor - Guarantee proper JSON formatting and syntax highlighting for all content - Maintain consistent terminal appearance across all tool renderers - Fix issue where some valid JSON content wasn't being highlighted
…JSON detection - Remove isValidJson function and conditional logic completely - Always use CodeEditor with JSON highlighting for consistent formatting - Eliminate TerminalOutput fallback path for cleaner codebase - Reduce complexity while ensuring all tool outputs get proper formatting
- Parse and reformat JSON strings found in item.text fields - Apply JSON.stringify(data, null, 2) to ensure proper indentation - Handle both JSON and non-JSON text content gracefully - Fix issue where JSON output was displayed as single line
…eEditor sections - Split combined output into separate Arguments and Output sections - Add section headers with clear visual separation - Set appropriate height limits: 200px for arguments, flexible for output - Improve readability by clearly distinguishing input vs output data - Remove debugger statement and unused combinedOutput logic
…Editor containers - Remove 'Arguments:' and 'Output:' header labels for cleaner appearance - Add p-3 padding to CodeEditor containers for better spacing - Simplify layout by removing border separators between sections - Maintain clear visual separation through natural content flow
- Created standalone CodeHighlight component for syntax highlighting - Updated TerminalRenderer to use CodeHighlight instead of full CodeEditor - Resolves styling issues when using CodeEditor in terminal context
- Removed redundant nested div wrapper - Merged layout styles to outer div for cleaner structure
511bfef to
f3daf7e
Compare
ZhaoHeh
approved these changes
Sep 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Removed the complex and bloated Tool Generic Renderer system and replaced it with a clean, terminal-style renderer using
CodeEditor. This addresses the issue where the fallback renderer was visually unappealing and contained excessive code.Before
After
Checklist