Add markdown rendering, horizontal/vertical scrolling, and performance optimizations#11
Merged
evantahler merged 1 commit intomainfrom Feb 18, 2026
Merged
Conversation
…e optimizations Introduces prettier markdown rendering with tables, code blocks, bold/italic text using marked + marked-terminal. Adds Tab-based scroll mode with arrow keys for navigating large responses (both horizontal and vertical). Implements Ink's <Static> component for completed messages to remove them from the render tree, keeping the dynamic tree small so typing remains fast with large output. Includes tests for markdown rendering and horizontal scroll clipping. Updates agent system prompt to hint at markdown formatting and scroll mode availability. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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
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
Introduces prettier markdown rendering with tables, code blocks, bold/italic text. Adds Tab-based scroll mode with arrow keys for navigating large responses (both horizontal and vertical). Implements Ink's
<Static>component for completed messages to remove them from the render tree, keeping the dynamic tree small so typing remains fast even with large output. Includes comprehensive tests for markdown rendering and horizontal scroll clipping.Key Changes
marked+marked-terminalfor rich terminal output (wide tables at 9999 cols)<Static>component moves completed messages out of render tree, tiny dynamic treeTesting
All tests pass (
bun test49 passing), lint is clean (bun lint). Manually verified: large tables don't cause typing lag, scrolling works in both directions, box switches border style based on focus mode.🤖 Generated with Claude Code