Skip to content

fix(web): use same-origin WS URL on default ports (HTTPS/443) - #2371

Merged
lsm merged 1 commit into
devfrom
session/voice-input-18ff051a
Aug 5, 2026
Merged

fix(web): use same-origin WS URL on default ports (HTTPS/443)#2371
lsm merged 1 commit into
devfrom
session/voice-input-18ff051a

Conversation

@lsm

@lsm lsm commented Aug 5, 2026

Copy link
Copy Markdown
Owner

What

getDaemonWsUrl() hardcoded :8283 when window.location.port was empty. On HTTPS:443 (browsers omit default ports) behind a TLS-terminating proxy such as tailscale serve --https 443, the page loaded but the WS hit wss://<host>:8283/ws — a port nothing proxies → instant "connection lost".

Fix

Use same-origin (protocol default port) when no explicit port. Optional loc param added as a test seam.

Verify

New connection-manager-ws-url.test.ts — explicit port, 443 default-port regression, http default-port. 3/3 pass locally; tsc and oxlint clean.

getDaemonWsUrl() fell back to a hardcoded :8283 when window.location.port was empty. On HTTPS:443 (browsers omit default ports) behind a TLS-terminating proxy such as `tailscale serve --https 443`, the page loaded but the WS hit wss://<host>:8283/ws — a port nothing proxies — causing an instant "connection lost".

Use same-origin (protocol default port) when no explicit port. Adds an optional `loc` param as a test seam. Regression test covers explicit-port, default-port (443), and http default-port cases.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lsm has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@lsm
lsm merged commit 9eb8d61 into dev Aug 5, 2026
36 checks passed
@lsm
lsm deleted the session/voice-input-18ff051a branch August 5, 2026 05:39
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