Skip to content

Comments

Add markdown rendering, horizontal/vertical scrolling, and performance optimizations#11

Merged
evantahler merged 1 commit intomainfrom
evantahler/markdown-rendering
Feb 18, 2026
Merged

Add markdown rendering, horizontal/vertical scrolling, and performance optimizations#11
evantahler merged 1 commit intomainfrom
evantahler/markdown-rendering

Conversation

@evantahler
Copy link
Contributor

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

  • Markdown rendering: marked + marked-terminal for rich terminal output (wide tables at 9999 cols)
  • Scroll mode: Tab toggles focus to messages, ↑↓←→ navigate, Tab/any key returns to input
  • Performance: <Static> component moves completed messages out of render tree, tiny dynamic tree
  • Tests: 49 passing tests covering markdown rendering, scroll clipping, system integration
  • System prompt: Updated agent instructions to strongly hint at markdown formatting and scroll capabilities

Testing

All tests pass (bun test 49 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

…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>
@evantahler evantahler merged commit 37a5e20 into main Feb 18, 2026
4 checks passed
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.

1 participant