Files
openclaw/docs/zh-CN/web/webchat.md
Josh Palmer a3ec2d0734 Docs: update zh-CN translations and pipeline
What:
- update zh-CN glossary, TM, and translator prompt
- regenerate zh-CN docs and apply targeted fixes
- add zh-CN AGENTS pipeline guidance

Why:
- address terminology/spacing feedback from #6995

Tests:
- pnpm build && pnpm check && pnpm test
2026-02-03 13:23:00 -08:00

1.9 KiB
Raw Permalink Blame History

read_when, summary, title, x-i18n
read_when summary title x-i18n
调试或配置 WebChat 访问
用于聊天 UI 的 loopback WebChat 静态主机和 Gateway 网关 WS 使用 WebChat
generated_at model provider source_hash source_path workflow
2026-02-03T10:13:28Z claude-opus-4-5 pi b5ee2b462c8c979ac27f80dea0cf12cf62b3c799cf8fd0a7721901e26efeb1a0 web/webchat.md 15

WebChatGateway 网关 WebSocket UI

状态macOS/iOS SwiftUI 聊天 UI 直接与 Gateway 网关 WebSocket 通信。

它是什么

  • Gateway 网关的原生聊天 UI无嵌入式浏览器无本地静态服务器
  • 使用与其他渠道相同的会话和路由规则。
  • 确定性路由:回复始终返回到 WebChat。

快速开始

  1. 启动 Gateway 网关。
  2. 打开 WebChat UImacOS/iOS 应用)或控制 UI 聊天标签页。
  3. 确保已配置 Gateway 网关认证(默认需要,即使在 loopback 上)。

工作原理(行为)

  • UI 连接到 Gateway 网关 WebSocket 并使用 chat.historychat.sendchat.inject
  • chat.inject 直接将助手注释追加到转录并广播到 UI无智能体运行
  • 历史记录始终从 Gateway 网关获取(无本地文件监听)。
  • 如果 Gateway 网关不可达WebChat 为只读模式。

远程使用

  • 远程模式通过 SSH/Tailscale 隧道传输 Gateway 网关 WebSocket。
  • 你不需要运行单独的 WebChat 服务器。

配置参考WebChat

完整配置:配置

渠道选项:

  • 没有专用的 webchat.* 块。WebChat 使用下面的 Gateway 网关端点 + 认证设置。

相关的全局选项:

  • gateway.portgateway.bindWebSocket 主机/端口。
  • gateway.auth.modegateway.auth.tokengateway.auth.passwordWebSocket 认证。
  • gateway.remote.urlgateway.remote.tokengateway.remote.password:远程 Gateway 网关目标。
  • session.*:会话存储和主键默认值。