Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

desktop: permission dialog expands to full command length instead of scrolling

已关闭 适合新手
#57,209 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
desktop, frontend

调研方向

首先找到桌面应用使用的共享权限提示组件;issue 没有指出文件或测试。使用一条较长的多行 shell 命令重现问题,并检查命令内容如何影响对话框的高度。完成标准是对话框高度受限、命令区域可以滚动,并且批准和拒绝按钮仍可访问。

由索引模型根据 Issue 内容生成。

描述

pending close triaging

Summary

In the desktop app the permission request dialog expands to fit the whole command. A long multi-line shell command makes the dialog very tall, up to the full screen height. It should have a bounded height with a scrollable area.

Environment

  • opencode version: 2.0.32
  • OS: macOS 13.7.8 (Darwin 22.6.0, x86_64)
  • Terminal: desktop app (not a terminal session)
  • Shell: /bin/zsh
  • Install/channel: desktop, latest
  • Active plugins: none configured (only one MCP server)

Reproduction

  1. Add an ask rule for shell commands, e.g. a permission with resource * and effect ask.
  2. Ask the agent to run a long multi-line shell command (20 or more lines).
  3. The permission dialog appears and shows the entire command.

Expected Behavior

The dialog keeps a fixed maximum height and the command is shown in a scrollable area, so the approve and reject buttons stay reachable.

Actual Behavior

The dialog grows with the command length and takes the full height of the screen.

Additional Context

  • Seen while approving multi-line shell commands from a Code Mode agent.
  • Workaround: send shorter single-purpose commands.
  • Frequency: every time a long command needs approval.
  • The same dialog is used for other tools, so the fix likely belongs in the shared permission prompt component.
主要语言
TypeScript
星标
215k
派生
28.9k
平均合并
8 小时 11 分钟
30 天内合并 PR
365

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。