Tray tooltip includes the tool command or URL
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 src/OpenClaw.Shared/OpenClawGatewayClient.cs 中的 OpenClawGatewayClient.HandleToolEvent、src/OpenClaw.Shared/Models.cs 中的 AgentActivity.DisplayText,以及 src/OpenClaw.Tray.WinUI/Services/TrayTooltipBuilder.cs 中的 TrayTooltipBuilder。添加一个回归测试,检查 DisplayText 中不包含令牌查询,然后运行相关测试。完成标准是:在截断标签之前移除 URL 用户信息、查询和片段,同时保留工具名称和阶段。
由索引模型根据 Issue 内容生成。
描述
What happens
A tool event copies command or url into the activity label, cut at 60 characters, with no redaction. The tray icon tooltip prints that label on each refresh through AgentActivity.DisplayText. The gateway client log deliberately omits the label because it can carry a command, path, or URL. A ?token= in the first 60 characters is still shown on the tooltip.
Where
Checked on 7967d509 by reading the code. A tool event was not sent from a live gateway.
- Label: OpenClawGatewayClient.cs
- Display text: Models.cs
- Tooltip: TrayTooltipBuilder.cs
Suggested fix
Redact URL userinfo, query, and fragment before the label is stored. Keep the tool name and phase, which the client log already records.
Environment
Windows 11. OpenClaw Companion source on main at commit 7967d509886fc9efecbb19c8236350a82867f69c (2026-11-04). No packaged installer build was used.
Steps
- Receive a gateway tool event whose
args.commandorargs.urlis longer than a short label and contains a query. - Hover the tray icon while that activity is current.
- Read the tooltip.
OpenClawGatewayClient.HandleToolEvent copies the first 60 characters of command or url into AgentActivity.Label. DisplayText includes that label. TrayTooltipBuilder prints CurrentActivity.DisplayText. The client log already omits the label.
Repair
Store a redacted label: drop URL userinfo, query, and fragment before truncation. Add a regression that a ?token= query is not in DisplayText. Stop there. The copied support bundle is #2008.
- 主要语言
- C#
- 星标
- 2.2k
- 派生
- 340
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 161
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openclaw/openclaw-windows-node 的其他 Issue
-
clawsweeper:bulk-filed clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 82/100
openclaw/openclaw-windows-node#2010 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
clawsweeper:bulk-filed clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 77/100
openclaw/openclaw-windows-node#2009 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 78/100
openclaw/openclaw-windows-node#2008 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 84/100
openclaw/openclaw-windows-node#2006 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 85/100
openclaw/openclaw-windows-node#2004 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 openclaw/openclaw-windows-node 的全部 Issue
相似的 Issue
-
python triage
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/semantic-kernel#14753 ·
维护者通常 5 天内回复
-
NEW ISSUE Requestor-Player
难度 2/5 1-3 小时 新手友好度 81/100
tModLoader/tModLoader#5575 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
A: Art Beginner Friendly P3: Standard T: Bugfix
难度 2/5 1-3 小时 新手友好度 76/100
space-wizards/space-station-14#46728 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100