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

worker: a foreground call waits 600 s before it becomes a job — is that the right ceiling?

Đang mở
#1,521 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, devtools

Hướng nghiên cứu

Start with BashCeilingSeconds in internal/exec/bare, then read timeoutSentence in internal/session/tools_jobs.go and the BashPromotedLead hand-off in internal/session/promote.go. Compare the worker path with the chat backgroundAfter behavior and inspect the changes from #1515. Done means the project has an agreed foreground ceiling, matching hand-off behavior, and coverage for the selected threshold.

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

Mô tả

area:session needs a ruling

A fresh-install check on 2026-09-25 (dev-20260925-1194d4b8fe88, devaf installer, WSL) ran a default /task that took 22m37s for a one-line bug fix. About 10 of those minutes were one worker command, find / -name test_calc.py -not -path '*/proc/*', which walks /mnt/c on WSL. A foreground bash call runs for up to BashCeilingSeconds (600 s) before it becomes a background job, so the task sat silent for ten minutes before the worker got control back.

The question: is 600 s the right foreground ceiling for a worker, or should a worker's call hand off sooner, for example after 60–120 s, the way the chat's backgroundAfter path does?

Where

  • BashCeilingSeconds (internal/exec/bare), and timeoutSentence in internal/session/tools_jobs.go, which interpolates it into the tool description.
  • The job hand-off: BashPromotedLead in internal/session/promote.go.

Context

Since #1515, a worker can stop a job it started through jobs. Before that, the backgrounded find ran on for the rest of the task. A shorter hand-off is only useful now that the worker can act on it.

Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 35 phút
Pull request đã merge (30 ngày)
752

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

  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 Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

Issue tương tự

Thêm issue về Go

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.