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

57 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
read_when:
- 调试或配置 WebChat 访问
summary: 用于聊天 UI 的 loopback WebChat 静态主机和 Gateway 网关 WS 使用
title: WebChat
x-i18n:
generated_at: "2026-02-03T10:13:28Z"
model: claude-opus-4-5
provider: pi
source_hash: b5ee2b462c8c979ac27f80dea0cf12cf62b3c799cf8fd0a7721901e26efeb1a0
source_path: web/webchat.md
workflow: 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.history``chat.send``chat.inject`
- `chat.inject` 直接将助手注释追加到转录并广播到 UI无智能体运行
- 历史记录始终从 Gateway 网关获取(无本地文件监听)。
- 如果 Gateway 网关不可达WebChat 为只读模式。
## 远程使用
- 远程模式通过 SSH/Tailscale 隧道传输 Gateway 网关 WebSocket。
- 你不需要运行单独的 WebChat 服务器。
## 配置参考WebChat
完整配置:[配置](/gateway/configuration)
渠道选项:
- 没有专用的 `webchat.*` 块。WebChat 使用下面的 Gateway 网关端点 + 认证设置。
相关的全局选项:
- `gateway.port``gateway.bind`WebSocket 主机/端口。
- `gateway.auth.mode``gateway.auth.token``gateway.auth.password`WebSocket 认证。
- `gateway.remote.url``gateway.remote.token``gateway.remote.password`:远程 Gateway 网关目标。
- `session.*`:会话存储和主键默认值。