Skip to content

feat(tui): improve diff span rendering#467

Merged
CSRessel merged 1 commit into
mainfrom
feat/vendor-diff-render
May 12, 2026
Merged

feat(tui): improve diff span rendering#467
CSRessel merged 1 commit into
mainfrom
feat/vendor-diff-render

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

Summary

  • Ports the upstream Codex diff-rendering approach into Nori's smaller TUI surface.
  • Preserves syntax-highlighter state across update hunks and wraps styled spans by terminal display width.
  • Uses move/update destination paths for syntax detection and documents the diff-rendering invariant.

Test Plan

  • cargo test -p nori-tui diff_render
  • cargo test -p nori-tui
  • cargo build --bin nori
  • cargo build --bin mock_acp_agent
  • cargo test -p tui-pty-e2e
  • just fmt
  • just fix -p nori-tui

Generated with Nori.

@CSRessel CSRessel changed the title feat(tui): vendor upstream diff span rendering feat(tui): improve diff span rendering May 12, 2026
@CSRessel CSRessel merged commit 011d9e4 into main May 12, 2026
3 checks passed
@CSRessel CSRessel deleted the feat/vendor-diff-render branch May 12, 2026 15:24
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