desktop: permission dialog expands to full command length instead of scrolling
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Trước tiên, hãy tìm thành phần yêu cầu quyền dùng chung trong ứng dụng desktop; issue không nêu tên tệp hay bài kiểm thử. Tái hiện vấn đề bằng một lệnh shell dài, nhiều dòng và kiểm tra nội dung lệnh ảnh hưởng thế nào đến chiều cao hộp thoại. Công việc hoàn tất khi chiều cao hộp thoại được giới hạn, vùng lệnh có thể cuộn và các nút chấp thuận, từ chối vẫn có thể truy cập được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 215k
- Fork
- 28.9k
- Merge trung bình
- 8 giờ 11 phút
- Pull request đã merge (30 ngày)
- 365
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode
-
reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
anomalyco/opencode#57711 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anomalyco/opencode#57698 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending close triaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
anomalyco/opencode#57664 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
anomalyco/opencode#57579 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#57536 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
Edit: Tele Posadas HDĐang mởcheck:passed streams:edit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:mcp bug has repro platform:vscode regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anthropics/claude-code#103970 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
skillopt: success-reflect prompt omits the edit schema, so every success-only edit is droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sdk-typescript: unquoted COPY globs in shell form are silently dropped from the image build contextĐang mởbug javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày