Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#57,209 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Lĩnh vực
desktop, frontend

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ả

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.
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode

Tất cả issue của anomalyco/opencode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.