[Bug]: 无法使用client端模式
Summary
无法使用client端模式,只能强制使用本地的localhost:4096, 使用文档和操作文档都没有提供
Steps to reproduce
无法使用client端模式,只能强制使用本地的localhost:4096, 使用文档和操作文档都没有提供
Expected behavior
无法使用client端模式,只能强制使用本地的localhost:4096, 使用文档和操作文档都没有提供
Actual behavior
无法使用client端模式,只能强制使用本地的localhost:4096, 使用文档和操作文档都没有提供
Retest result (focused on @benjiming's host concern):
- Client mode works; custom host is respected (not forced to
127.0.0.1:4096). - When URL is set to
http://127.0.0.1:5999, requests go to5999(and fail only because no server is running there). - With
opencode serve --port 6190, OpenWork connects successfully; Settings showsConnectedand Base URLhttp://127.0.0.1:6190.
Note: console still shows periodic 127.0.0.1:4096/global/health polling errors, which may create the impression that it is forced to 4096.
Screenshot:

can you retest in latest versions please
Retest result (2026-03-19, latest dev @ f94ae1f7)
Tested in web client mode (Vite dev server, non-Tauri).
✅ Client mode works — custom host is respected
- Via "Add a worker" → "Connect remote", user can set a custom OpenWork server URL (e.g.
http://127.0.0.1:5999). The app will attempt to connect to that address. - When URL is set to a custom port, requests to
/healthand/workspacesgo to the custom port (and fail only because no server is running there).
⚠️ Residual 127.0.0.1:4096 health polling still present
- Even after setting a custom Worker URL, the console still shows periodic
127.0.0.1:4096/global/healthpolling errors. This is because the OpenCode engine connection (ServerProvider) and the OpenWork server connection are two independent systems:ServerProvider(OpenCode engine) → defaults to127.0.0.1:4096, health-checks every 10sopenworkServerSettings(OpenWork server) → configurable via "Add Worker → Connect Remote"
- This polling creates the strong impression that the app is forced to
4096, which is the root cause of user confusion.
⚠️ Settings → Advanced URL is read-only
The connection URL shown in Settings → Advanced is display-only, not editable. Users must use "Add Worker → Connect Remote" to change it.
Screenshots
Settings → Advanced page (URL is read-only):

Add Remote Worker dialog (custom URL input):

Custom URL http://127.0.0.1:5999 entered:

Conclusion
Same findings as previous retest (2026-02-06): client mode works, custom URL is respected via the "Connect Remote" flow. The residual 4096 health polling and lack of user-facing documentation remain the main sources of confusion.