[FEATURE]: Reject reason box in main sessions, not only subagents

Đang mở Phù hợp với người mới
#67,749 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
74/100
Loại issue
Tính năng
Độ 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
cli, developer-experience

Hướng nghiên cứu

Issue chỉ ra phần kiểm tra onSelect cho session.parentID trong lời nhắc quyền, nhưng không cung cấp đường dẫn tệp. Hãy bắt đầu bằng cách tìm phần kiểm tra đó trong TUI và so sánh cách hiển thị ô lý do từ chối của subagent. Công việc hoàn tất khi phiên chính cũng hiển thị ô lý do và gửi ô đó khi để trống vẫn thực hiện thao tác từ chối thông thường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/tui type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

In the TUI, "Reject" only asks "Tell OpenCode what to do differently" in a subagent session. In the main session it rejects with no message and the turn ends, so I have to type the correction as a new prompt and the agent starts that work over.

This bites most with edits. The model often sends several edits in one step, and rejecting one rejects all of them. With a message the loop just continues: on 2.4.3 I replied reject with a message over the API to one of three pending edits in a main session, and the model got the message on all three and carried on. So the backend already handles it, only the TUI holds it back. The check is in the permission prompt's onSelect: if (session.parentID) { stage = "reject" } else { reply("reject") }.

Proposal: show the reason box in main sessions too. Enter with an empty box keeps today's behaviour (plain reject, turn ends), so nothing changes for anyone who doesn't type a reason.

Related: #28910 asked for the same box in the Desktop app (closed as stale). Happy to open the PR if this sounds right.

Ngôn ngữ chính
TypeScript
Star
230k
Fork
31.3k
Merge trung bình
6 giờ 58 phút
Pull request đã merge (30 ngày)
471

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.