TUI permission prompt for MCP tools doesn't show the call arguments
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 73/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- cli
调研方向
从 packages/tui/src/util/permission.ts 开始,issue 指出回退分支遗漏了 metadata.input。追踪权限提示如何呈现该分支,并使用已在元数据中传递的 MCP 调用参数。使用设置为 ask 的远程 MCP 写入工具复现;完成标准是提示中显示这些参数,以便用户在批准前查看拟执行的操作。
由索引模型根据 Issue 内容生成。
描述
Description
When an MCP tool asks for permission, the TUI prompt shows only the tool name:
△ Permission required
⚙ Call tool linear_save_comment
Tool: linear_save_comment
The arguments (which issue, what the comment says) are not shown anywhere, so approving a write means approving it blind. The tool line in the transcript above the prompt leaves out object arguments too.
Since #51062 the MCP wrapper passes the call arguments as metadata.input, so the data reaches the prompt. The fallback branch in packages/tui/src/util/permission.ts just doesn't render it. #51519 is the same problem in the web/desktop dock, and #50234 the general version of it.
Plugins
None needed to reproduce
OpenCode version
1.19.4, and still on dev (085d6f7)
Steps to reproduce
- Add a remote MCP server with a write tool and set its permission to ask.
- Ask the agent to call the write tool.
- The prompt shows
Call tool <name>andTool: <name>, but no arguments.
Screenshot
See the prompt above.
Operating System
macOS 26
- 主要语言
- TypeScript
- 星标
- 221k
- 派生
- 29.6k
- 平均合并
- 7 小时 41 分钟
- 30 天内合并 PR
- 510
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anomalyco/opencode 的其他 Issue
-
core: OpenRouter BYOK sessions record cost = 0 since v2.2.0 (ignores cost_details.upstream_inference_cost)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭reproduced
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/opencode#60558 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/opencode#60541 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
anomalyco/opencode#60529 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
anomalyco/opencode#60469 · 2 条评论 ·
维护者通常 1 天内回复
-
reproduced
难度 2/5 1-3 小时 新手友好度 75/100
anomalyco/opencode#60306 · 1 条评论 ·
维护者通常 1 天内回复
查看 anomalyco/opencode 的全部 Issue
相似的 Issue
-
Replace discontinued crypto-js in the theme可能已有人在做 @aelmanaa 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
solana-foundation/solana-web3.js#4015 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 90/100
ivopogace/opencode-courier#422 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
chapel-lang/chapel-vscode#158 ·
维护者通常 1 天内回复