Skip to content

fix(tui): restore diff viewer route and workspace#28676

Merged
jlongster merged 1 commit into
anomalyco:jlongster/diff-viewerfrom
jlongster:fix/diff-viewer-route-workspace
May 21, 2026
Merged

fix(tui): restore diff viewer route and workspace#28676
jlongster merged 1 commit into
anomalyco:jlongster/diff-viewerfrom
jlongster:fix/diff-viewer-route-workspace

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?

Fixes the TUI diff viewer so closing it returns to the route that opened it instead of always going home. Also passes the active workspace into the working-tree diff request so the viewer reads changes from the selected workspace.

How did you verify your code works?

  • bun test test/cli/tui/diff-viewer-file-tree-utils.test.ts
  • bun typecheck in packages/opencode
  • bun typecheck in packages/plugin
  • Push hook ran bun turbo typecheck successfully

Screenshots / recordings

N/A

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@jlongster jlongster merged commit b38f4d7 into anomalyco:jlongster/diff-viewer May 21, 2026
8 checks passed
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