desktop: permission dialog expands to full command length instead of scrolling
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
首先找到桌面应用使用的共享权限提示组件;issue 没有指出文件或测试。使用一条较长的多行 shell 命令重现问题,并检查命令内容如何影响对话框的高度。完成标准是对话框高度受限、命令区域可以滚动,并且批准和拒绝按钮仍可访问。
由索引模型根据 Issue 内容生成。
描述
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
- Add an ask rule for shell commands, e.g. a permission with resource * and effect ask.
- Ask the agent to run a long multi-line shell command (20 or more lines).
- 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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anomalyco/opencode 的其他 Issue
-
reproduced
难度 2/5 1-3 小时 新手友好度 67/100
anomalyco/opencode#57711 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
anomalyco/opencode#57698 · 3 条评论 ·
维护者通常 1 天内回复
-
pending close triaging
难度 2/5 1-3 小时 新手友好度 66/100
anomalyco/opencode#57664 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
anomalyco/opencode#57579 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
anomalyco/opencode#57536 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 anomalyco/opencode 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
phivk/rubiks-lab#33 ·
维护者通常 1 天内回复
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be edited可能已有人在做 @ManyaJain111 今天认领。 未关闭bug enhancement possible-duplicate
难度 2/5 1-3 小时 新手友好度 77/100
AOSSIE-Org/PictoPy#1637 · 4 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
chaitin/MonkeyCode#1437 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area:cards enhancement migration ready-for-agent
难度 2/5 1-3 小时 新手友好度 70/100
fil-donadoni/tolaria#6309 ·
维护者通常 1 天内回复