Skip to content

feat(tui): add server switcher#37668

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
server-switcher
Open

feat(tui): add server switcher#37668
opencode-agent[bot] wants to merge 1 commit into
v2from
server-switcher

Conversation

@opencode-agent

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

Copy link
Copy Markdown
Contributor

Summary

  • add a client-side registry and <leader>w server picker to the V2 TUI
  • validate remote endpoints before switching and persist only normalized URLs
  • remount the complete server-scoped provider tree so sessions, routes, events, locations, permissions, and caches cannot leak between servers
  • preserve managed-service restart/reconnect behavior only for the startup server

Validation

  • cd packages/tui && bun typecheck
  • cd packages/tui && bun test (272 passed, 1 skipped)
  • cd packages/cli && bun typecheck
  • cd packages/cli && bun test test/server-connection.test.ts
  • OpenCode Drive: switched local → second V2 server → local using the new keybind and verified each server's distinct model/catalog state

Demo

OpenCode Drive recording: https://slack.com/archives/C0BE69AHCQP/p1784401955303119

Notes

The package-wide CLI suite has one unrelated Host-sensitive failure in concurrent service processes elect one server; the same failure reproduces on the unchanged origin/v2 commit.

Fixes #37667

Requested by: @R44VC0RP (Ryan Vogel via Slack)

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