Skip to content

v2/rails: add Terminalwire::V2::Rails.terminal (v2-default version endpoint)#26

Merged
bradgessler merged 1 commit into
mainfrom
v2-rails-terminal
Jun 22, 2026
Merged

v2/rails: add Terminalwire::V2::Rails.terminal (v2-default version endpoint)#26
bradgessler merged 1 commit into
mainfrom
v2-rails-terminal

Conversation

@bradgessler

Copy link
Copy Markdown
Contributor

The v2-only Rails mount. Returns a VersionEndpoint that routes a WebSocket upgrade by the advertised version subprotocol and defaults to v2 — the same Rack-endpoint shape as dual_terminal's Dispatcher (which Rails match to: hands off correctly in prod), minus the v1 branch. (A bare Server::Rack handed to match to: drops streaming output in production — that's what the endpoint avoids.) It's also the forward-compatible seam: a future v3 registers another handler without changing the app's route.

Additive — dual_terminal untouched, so terminalwire.com is unaffected. Specs: VersionEndpoint dispatch + .terminal (6 examples); full v2 suite 90/0.

…ndpoint

The v2-only mount. Returns a VersionEndpoint that routes a WebSocket upgrade by the
advertised version subprotocol and defaults to v2 — the same Rack-endpoint shape as
dual_terminal's Dispatcher (which Rails 'match to:' hands off correctly in prod),
minus the v1 branch. A bare Server::Rack handed to 'match to:' drops streaming output
in production; the endpoint is what's needed. It's also the forward-compatible seam:
a future v3 registers another handler without changing the app's route.

Additive — dual_terminal is unchanged. Specs: VersionEndpoint dispatch + .terminal
(6 examples); full v2 suite 90/0.
@bradgessler bradgessler merged commit 2f923ed into main Jun 22, 2026
2 checks passed
@bradgessler bradgessler deleted the v2-rails-terminal branch June 22, 2026 21:14
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