task countdown hint promises 0 waits, and in a headless run 0 starts immediately
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
- 88/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ệ
- go
- Lĩnh vực
- cli, developer-experience
Hướng nghiên cứu
Bắt đầu tại internal/config/settings.go:2298 và xem xét internal/session/session.go:1806 để phân biệt watched/headless. Thêm một bài kiểm thử cho gợi ý đếm ngược của tác vụ, giữ nguyên internal/manual/chat/tasks.md. Hoàn tất khi gợi ý bao gồm điều kiện watched, khớp với tasks.md:1492 và bài kiểm thử mới chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The defect is one string
The task countdown row's hint promises, unconditionally, that zero waits:
internal/config/settings.go:2298
"how many seconds a proposed task waits for you before it starts on its own. The countdown is your window to redirect it or wave it off, not a gate, 0 waits for your answer instead of starting. A change lands on the next session."
That promise holds only on a watched session. internal/session/session.go:1806 states the other half:
0 IS A CLOCK THAT IS OFF, the proposal waits for
Agent.ResolveTaskand nothing else, which is only a sentence a WATCHED session can honour: with nobody subscribed to the events (AskConsentfalse, or no turn hub), the deadline approves whatever this says, because a headless run has no one to wait for.
So on a headless run, zero does not wait for an answer. It approves immediately. The value a person types to make every proposal stop is the value that makes every proposal start.
Why this is the worst place for it
The surface closest to the decision is the one that is wrong. The hint is read at the moment the number is typed. The page a person would have to go looking for is already correct.
The manual is correct and MUST NOT be changed to match
internal/manual/chat/tasks.md scopes the promise properly in both places that tell a person to use zero:
:1492"Usetask.autoapprove_secondsin the Safety settings to give yourself a longer window, or set it to 0 so every watched proposal waits for you.":1510"Settask.autoapprove_secondsto 0 in Safety settings if every proposal on a watched session should wait until you answer."
Reconciling the two surfaces in the wrong direction would delete the only correct statement of the behaviour that exists. If the hint and the page disagree, the page wins.
Not live today, and the reason it is worth fixing anyway
DefaultTaskAutoApprove is 15 (settings.go:1429) and a persisted value is only taken when one is present (settings.go:4256), so nothing reaches zero by default. The hazard arrives the first time somebody types 0 meaning what the row told them it means.
Acceptance
- The hint carries the watched condition, in the shape
tasks.md:1492already uses. - A test holds it. A promise in a help string has nothing mechanical behind it today, which is why the two surfaces were free to drift apart: nothing relates the string to the behaviour it describes.
Read at d91bb63ae.
- Ngôn ngữ chính
- Go
- Star
- 115
- Fork
- 14
- Merge trung bình
- 9 giờ 38 phút
- Pull request đã merge (30 ngày)
- 749
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Agent-Field/CodeAF
-
area:chat feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1510 ·
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 82/100
Agent-Field/CodeAF#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Agent-Field/CodeAF#1470 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Agent-Field/CodeAF#1469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1468 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Agent-Field/CodeAF
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
volodya-lombrozo/aidy#333 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
rossoctl/context-guru#314 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
OwO-Network/DLX#236 · 1 bình luận · 1 reaction ·
-
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100