Skip to content

fix(tui): use v2 vcs diff endpoint#36420

Draft
opencode-agent[bot] wants to merge 1 commit into
v2from
v2-diff-route
Draft

fix(tui): use v2 vcs diff endpoint#36420
opencode-agent[bot] wants to merge 1 commit into
v2from
v2-diff-route

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • route the V2 TUI diff viewer through the generated @opencode-ai/client VCS client
  • translate the UI working-tree source to the V2 working mode
  • consume the location-scoped V2 response directly
  • update diff-viewer coverage to reject the legacy endpoint shape

Root cause

The V2 VCS protocol, server handlers, Core module, and generated client already exist, but the TUI still called the compatibility client's legacy /vcs/diff route. The V2 server only serves /api/vcs/diff, so opening /diff returned 404 and crashed the TUI.

Tests

  • bun test test/cli/tui/diff-viewer.test.tsx (packages/tui)
  • bun typecheck (packages/tui)
  • bun test test/vcs.test.ts (packages/core)

Fixes #36190

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