Map OClaw bridge connect failures to readable fwd status codes.

Replace cryptic WinError 10061 flashes with i18n hints when the gateway is down or auth fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-06 15:34:43 +08:00
parent e356dffc86
commit 4054f55988
3 changed files with 34 additions and 2 deletions

View file

@ -1081,6 +1081,10 @@ const en = {
disabled: "Disabled",
connecting: "Connecting",
connected: "Connected",
connect_refused: "OClaw gateway down or port 8787 refused",
connect_timeout: "Timed out connecting to OClaw gateway",
auth_failed: "OClaw netx-bridge auth failed (check shared token)",
disconnected: "OClaw WSS disconnected",
},
runtimeTask: {
token_keepalive: "UME token keepalive",

View file

@ -1074,6 +1074,10 @@ const zh = {
disabled: "未启用",
connecting: "连接中",
connected: "已连接",
connect_refused: "OClaw 网关未启动或 8787 拒绝连接",
connect_timeout: "连接 OClaw 网关超时",
auth_failed: "OClaw netx-bridge 鉴权失败(检查共享 token)",
disconnected: "OClaw WSS 已断开",
},
runtimeTask: {
token_keepalive: "UME Token 保活",