Skip to content

fix(webui): honor custom gateway port with Vite - #5076

Merged
chengyongru merged 3 commits into
mainfrom
feat/webui-dev-mode
Jul 24, 2026
Merged

chengyongru merged 3 commits into
mainfrom
feat/webui-dev-mode

Conversation

@chengyongru

@chengyongru chengyongru commented Jul 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • use the gateway-provided WebSocket URL to preserve its custom port while running the WebUI through Vite
  • add a focused regression test for a custom gateway target

Why

With NANOBOT_API_URL=http://127.0.0.1:<port> bun run dev, Vite proxied HTTP requests to the configured gateway, but the app WebSocket still connected to hard-coded port 8765. The WebUI therefore stayed disconnected whenever the gateway used another port.

Verification

  • cd webui && bun run test -- src/tests/bootstrap.test.ts — 8 passed
  • cd webui && bun run lint
  • cd webui && bun run build
  • black-box check with a real gateway on custom WebSocket port 52913 and Vite on 5173:
    • the page reported Connected
    • the browser established its WebSocket connection to 52913
    • the Vite client was present
    • browser console: 0 errors, 0 warnings

@chengyongru chengyongru added priority: p1 Important user-impacting issue or project priority with bounded impact or a reasonable workaround. feature enhancement New feature or request webui documentation Improvements or additions to documentation test labels Jul 24, 2026
@chengyongru chengyongru changed the title feat(cli): add hot-reload mode to WebUI launcher fix(webui): honor custom gateway port with Vite Jul 24, 2026
@chengyongru
chengyongru merged commit d3e4b35 into main Jul 24, 2026
4 checks passed
rdnot added a commit to rdnot/nanobot-medical-research that referenced this pull request Jul 24, 2026
… Vite custom gateway port (HKUDS#5076) — preserve fork customizations
@chengyongru
chengyongru deleted the feat/webui-dev-mode branch July 27, 2026 09:25
enjied pushed a commit to enjied/nanobot-custom that referenced this pull request Jul 30, 2026
okwillbe pushed a commit to okwillbe/nanobot that referenced this pull request Aug 15, 2026
StefanoParadisi pushed a commit to StefanoHernandez/nanobot that referenced this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request feature priority: p1 Important user-impacting issue or project priority with bounded impact or a reasonable workaround. test webui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant