opencode 被吐槽:用户手动 shell 命令输出默认折叠像 agent 调用

minorcell · ghdev · 2026-10-22

opencode 的 web/desktop 客户端中,用户用 ! 前缀执行的 shell 命令,其输出行默认折叠,与 agent 工具调用的展示方式混用,需手动展开才能看到结果。

提交者指出问题根源:SessionShellMessage 复用了 agent shell 工具的渲染组件,且 compact 时间线预设下 shell.details === "collapsed",导致用户主动执行的命令也继承折叠策略。涉及 session.ts、session-timeline-row.tsx、tool-renderer.tsx 等代码位置,已有 4 条讨论。

原文链接 →

「编程与Agent」频道最新

更多「编程与Agent」频道 AI 资讯 →