Skip to content

feat(tui): initial impl of diff viewer#28476

Merged
jlongster merged 2 commits into
anomalyco:devfrom
jlongster:jlongster/diff-viewer
May 20, 2026
Merged

feat(tui): initial impl of diff viewer#28476
jlongster merged 2 commits into
anomalyco:devfrom
jlongster:jlongster/diff-viewer

Conversation

@jlongster

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds an opt-in TUI diff viewer behind OPENCODE_DIFF_VIEWER. The viewer supports working-tree and last-turn diff sources, a file tree, single-patch mode, split/unified rendering, keyboard navigation, and focused tests for file tree modeling/rendering.

How did you verify your code works?

  • bun typecheck from packages/opencode
  • bun test test/cli/tui/diff-viewer-file-tree-utils.test.ts test/cli/tui/diff-viewer-file-tree.test.tsx from packages/opencode
  • Push hook full workspace typecheck passed

Screenshots / recordings

Not included.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@jlongster jlongster merged commit 17d66ee into anomalyco:dev May 20, 2026
11 of 12 checks passed
MyNameIsGMLi pushed a commit to MyNameIsGMLi/opencode that referenced this pull request May 22, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant