Remove simulated dashboard implementation per user request

This commit is contained in:
Chen Gu
2026-08-13 17:00:20 +08:00
parent 5f278abcc0
commit 63a6cd5dde
14 changed files with 1903 additions and 0 deletions
+351
View File
@@ -0,0 +1,351 @@
# Session: 2026-03-07 18:49:31 UTC
- **Session Key**: agent:main:main
- **Session ID**: 4a933946-4b38-4123-b987-1063b8f5eec2
- **Source**: gateway:sessions.reset
## Conversation Summary
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-control-ui",
"id": "openclaw-control-ui"
}
```
[Sun 2026-03-08 02:32 GMT+8] Control UI 在哪里?
assistant: 你现在发消息的这个来源就是 `openclaw-control-ui`,也就是你已经在 Control UI 里了。
一般它就是你打开 OpenClaw 管理页面的那个界面(显示会话、模型、权限/能力开关的地方)。
如果你一时找不到入口,先在这台机器终端里跑:
- `openclaw status`(看当前服务和入口信息)
- `openclaw help`(看可用子命令)
- `openclaw gateway status`(确认网关状态)
`openclaw status` 输出贴我,我可以直接告诉你具体点击路径。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-control-ui",
"id": "openclaw-control-ui"
}
```
[Sun 2026-03-08 02:32 GMT+8] openclaw status
assistant: 我这边现在还不能直接在你机器里执行终端命令。
请你在本机终端运行:
`openclaw status`
然后把完整输出贴给我,我会立刻按你的环境给出“去哪里开权限、开哪些能力”的精确步骤。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-control-ui",
"id": "openclaw-control-ui"
}
```
[Sun 2026-03-08 02:33 GMT+8] guchen@MBKPro agent % openclaw status
🦞 OpenClaw 2026.3.2 (85377a2) — I can run local, remote, or purely on vibes—results may vary with DNS.
18:33:11 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
18:33:11 [plugins] feishu_chat: Registered feishu_chat tool
18:33:11 [plugins] feishu_wiki: Registered feishu_wiki tool
18:33:11 [plugins] feishu_drive: Registered feishu_drive tool
18:33:11 [plugins] feishu_bitable: Registered bitable tools
OpenClaw status
Overview
┌─────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Item │ Value │
├─────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Dashboard │ http://127.0.0.1:18789/ │
│ OS │ macos 14.7.5 (x64) · node 22.22.1 │
│ Tailscale │ serve · mbkpro.tail3f1b6.ts.net · https://mbkpro.tail3f1b6.ts.net │
│ Channel │ stable (default) │
│ Update │ pnpm · npm latest 2026.3.2 │
│ Gateway │ local · ws://127.0.0.1:18789 (local loopback) · reachable 48ms · auth token · MBKPro.lan (192.168.2.126) app 2026.3.2 macos 14.7.5 │
│ Gateway service │ LaunchAgent installed · loaded · running (pid 37097) │
│ Node service │ LaunchAgent not installed │
│ Agents │ 1 · 1 bootstrap file present · sessions 1 · default main active just now │
│ Memory │ 0 files · 0 chunks · dirty · sources memory · plugin memory-core · vector unknown · fts ready · cache on (0) │
│ Probes │ skipped (use --deep) │
│ Events │ none │
│ Heartbeat │ 30m (main) │
│ Sessions │ 1 active · default gpt-5.3-codex (200k ctx) · ~/.openclaw/agents/main/sessions/sessions.json │
└─────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Security audit
Summary: 2 critical · 4 warn · 2 info
CRITICAL Open groupPolicy with elevated tools enabled
Found groupPolicy="open" at: - channels.feishu.groupPolicy With tools.elevated enabled, a prompt injection in those rooms can become a high-impact incident.
Fix: Set groupPolicy="allowlist" and keep elevated allowlists extremely tight.
CRITICAL Feishu security warning
Feishu[default] groups: groupPolicy="open" allows any member to trigger (mention-gated). Set channels.feishu.groupPolicy="allowlist" + channels.feishu.groupAll…
WARN Reverse proxy headers are not trusted
gateway.bind is loopback and gateway.trustedProxies is empty. If you expose the Control UI through a reverse proxy, configure trusted proxies so local-client c…
Fix: Set gateway.trustedProxies to your proxy IPs or keep the Control UI local-only.
WARN Feishu doc create can grant requester permissions
channels.feishu tools include "doc"; feishu_doc action "create" can grant document access to the trusted requesting Feishu user.
Fix: Disable channels.feishu.tools.doc when not needed, and restrict tool access for untrusted prompts.
WARN Some gateway.nodes.denyCommands entries are ineffective
gateway.nodes.denyCommands uses exact node command-name matching only (for example `system.run`), not shell-text filtering inside a command payload. - Unknown …
Fix: Use exact command names (for example: canvas.present, canvas.hide, canvas.navigate, canvas.eval, canvas.snapshot, canvas.a2ui.push, canvas.a2ui.pushJSONL, canvas.a2ui.reset). If you need broader restrictions, remove risky command IDs from allowCommands/default workflows and tighten tools.exec policy.
WARN Potential multi-user setup detected (personal-assistant model warning)
Heuristic signals indicate this gateway may be reachable by multiple users: - channels.feishu.groupPolicy="open" No unguarded runtime/process tools were detect…
Fix: If users may be mutually untrusted, split trust boundaries (separate gateways + credentials, ideally separate OS users/hosts). If you intentionally run shared-user access, set agents.defaults.sandbox.mode="all", keep tools.fs.workspaceOnly=true, deny runtime/fs/web tools unless required, and keep personal/private identities + credentials off that runtime.
Full report: openclaw security audit
Deep probe: openclaw security audit --deep
Channels
┌──────────┬─────────┬────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Channel │ Enabled │ State │ Detail │
├──────────┼─────────┼────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Feishu │ ON │ OK │ configured │
└──────────┴─────────┴────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Sessions
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────┬──────────┬───────────────┬───────────────────────────────┐
│ Key │ Kind │ Age │ Model │ Tokens │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────┼──────────┼───────────────┼───────────────────────────────┤
│ agent:main:main │ direct │ just now │ gpt-5.3-codex │ 13k/200k (7%) · 🗄️ 97% cached │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────┴──────────┴───────────────┴───────────────────────────────┘
FAQ: https://docs.openclaw.ai/faq
Troubleshooting: https://docs.openclaw.ai/troubleshooting
Next steps:
Need to share? openclaw status --all
Need to debug live? openclaw logs --follow
Need to test channels? openclaw status --deep
assistant: 很好,这个输出已经够了:你的 **Control UI 就在** `http://127.0.0.1:18789/`
你现在要做的是在这个页面把会话权限从“无能力”切到“可执行本地操作”。
**你该怎么开权限(建议顺序)**
- 打开 `http://127.0.0.1:18789/`
- 进入当前会话 `agent:main:main`(或默认 agent 设置)
- 找到会话的 `Capabilities / Tools / Sandbox` 一类设置
- 把能力改成允许本地操作(至少开启:文件系统、命令执行)
- 若有范围选项,先选“workspace only”(更安全),确认可用后再按需放宽
- 保存后用 `/new` 开新会话让权限生效
**你现在遇到的症状**
- 我这边显示 `capabilities=none`,所以只能做会话消息类操作,不能直接读写你本机文件。
**额外提醒(你这台机器当前很重要)**
- `openclaw status` 已提示 Feishu 群组是 `groupPolicy="open"` 且有 elevated 风险,这是高危组合。
- 在你放开我本地能力前,建议先把 Feishu 群改成 `allowlist`,避免群里 prompt 注入放大风险。
如果你愿意,我下一条就给你一份“高能力但相对安全”的**最小可用权限模板**(逐项开关版),你照着点就行。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-control-ui",
"id": "openclaw-control-ui"
}
```
[Sun 2026-03-08 02:34 GMT+8] 好的
assistant: 太好了,给你一套直接可抄的“高能力但相对安全”模板(先这么开):
- **Sandbox**:优先 `workspace only`(先别全盘放开)
- **FS**`read/write` 开;限制在工作区
- **Exec/Run**:开(用于本地命令与自动化)
- **Web/Network**:开(需要联网查资料/调 API 时)
- **Elevated tools**:先关;确实要用时临时开
- **Group/Channel policy**:所有群场景用 `allowlist`,不要 `open`
你现在做完后,直接 `/new` 开个新会话,然后发一句:
**“做自检:列出当前目录、读取 AGENTS.md、告诉我可用能力”**
我就能立刻验证是否已拿到本地操控能力。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-tui (gateway-client)",
"id": "gateway-client",
"name": "openclaw-tui",
"username": "openclaw-tui"
}
```
[Sun 2026-03-08 02:39 GMT+8] 你直接给我把配置文件写出来吧
assistant: 可以,我先给你一份可直接落地的 `openclaw` 配置模板(偏“高能力 + 安全收口”)。你把它放到你当前使用的配置文件里即可:
```json
{
"agents": {
"defaults": {
"sandbox": {
"mode": "workspace"
}
}
},
"tools": {
"fs": {
"enabled": true,
"workspaceOnly": true
},
"exec": {
"enabled": true
},
"web": {
"enabled": true
},
"elevated": {
"enabled": false
}
},
"channels": {
"feishu": {
"groupPolicy": "allowlist",
"groupAllowlist": [],
"tools": {
"doc": false
}
}
},
"gateway": {
"trustedProxies": []
}
}
```
注意两点:
- 这是“通用模板”,你现有配置里可能字段名略有差异;原则不变:`workspace` 沙箱、`fs/exec/web` 开、`elevated` 关、Feishu 群策略 `allowlist`
- 保存后执行 `/new` 开新会话生效。
如果你把**你当前配置文件内容**贴我,我可以帮你做成“可直接覆盖的精确版本”(逐字段对齐你现在的结构)。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-tui (gateway-client)",
"id": "gateway-client",
"name": "openclaw-tui",
"username": "openclaw-tui"
}
```
[Sun 2026-03-08 02:44 GMT+8] 下面是我当前的tools配置,请帮我改好后发给我
assistant: 好的,直接把你当前 `tools` 配置原文贴上来(最好带上前后 20 行上下文,比如 `agents.defaults``channels` 相关段),我会按你现有结构改成可直接粘贴替换的版本。
user: Sender (untrusted metadata):
```json
{
"label": "openclaw-tui (gateway-client)",
"id": "gateway-client",
"name": "openclaw-tui",
"username": "openclaw-tui"
}
```
[Sun 2026-03-08 02:45 GMT+8] "tools": {
"profile": "messaging",
"agentToAgent": {
"enabled": true
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"session": {
"dmScope": "per-channel-peer"
},
"hooks": {
"internal": {
"enabled": true,
"entries": {
"boot-md": {
"enabled": true
},
"bootstrap-extra-files": {
"enabled": true
},
"command-logger": {
"enabled": true
},
"session-memory": {
"enabled": true
}
}
}
},
assistant: [[reply_to_current]] 好,我按你这份结构给你改成“高能力但相对安全收口”的版本(可直接替换你发的这段):
```json
"tools": {
"profile": "custom",
"agentToAgent": {
"enabled": true
},
"fs": {
"enabled": true,
"workspaceOnly": true
},
"exec": {
"enabled": true
},
"web": {
"enabled": true
},
"elevated": {
"enabled": false
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"session": {
"dmScope": "per-channel-peer"
},
"hooks": {
"internal": {
"enabled": true,
"entries": {
"boot-md": {
"enabled": true
},
"bootstrap-extra-files": {
"enabled": true
},
"command-logger": {
"enabled": true
},
"session-memory": {
"enabled": true
}
}
}
}
```
再补一条你配置里也建议同时改(安全关键):
```json
"channels": {
"feishu": {
"groupPolicy": "allowlist",
"groupAllowlist": []
}
}
```
改完后 `/new` 开新会话,然后让我做自检(列目录+读文件)验证权限是否生效。
assistant: ⚙️ Restarting OpenClaw in-process (SIGUSR1); back in a few seconds.