Sol/Astra: `Worker.ts wait` defaults to 540 s, but Claude Code moves a subagent's foreground Bash call to the background after 180 s, and the codex run is then killed
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 85/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
- tooling
Hướng nghiên cứu
Bắt đầu tại LIFEOS/TOOLS/Worker.ts:179, nơi WAIT_DEFAULT_SECONDS được đặt là 540, và kiểm tra cách --max-seconds ghi đè giá trị đó trong lệnh wait. Hạ giá trị mặc định xuống 150, sau đó cập nhật câu "blocks for up to 540 seconds" trong agents/Sol.md và agents/Astra.md. Xong khi một phiên audit của Sol lặp trên wait ở foreground mà không bị đẩy xuống background và kết thúc với một phán quyết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What. agents/Sol.md and agents/Astra.md start the codex helper in the background and then wait in the foreground with bun ~/.claude/LIFEOS/TOOLS/Worker.ts wait <lane> --slug <slug> (Bash timeout: 560000). With no --max-seconds, the wait uses WAIT_DEFAULT_SECONDS = 540 (LIFEOS/TOOLS/Worker.ts:179).
Claude Code 2.1.322 moves a subagent's foreground Bash call to the background once it has run for 180 s (the client's constant is 180000 ms, applied to async subagents unless the prompt cache setting is "off" or "1h").
What happens. Observed timeline of one failed Sol audit:
| Time | Event |
|---|---|
| +0 s | The wrapper starts CodexProgress.ts in the background and waits in the foreground |
| +3 min | The client moves the wait to the background |
| +3 min 15 s | The wrapper has nothing left in the foreground, so it ends its turn |
| +8.5 min | Both background tasks end with "failed with exit code 144", and the helper logs failed to send SIGTERM ... EPERM |
| Result | verdict "error", exit_code null, duration 512,701 ms, no audit |
Shorter runs sometimes survive, because codex can finish inside the window between the wrapper going idle and the kill (two earlier runs of 405 s and 464 s were backgrounded the same way and still finished). Longer runs are at risk; the one observed failure ended at 512 s.
Suggested fix. Keep every single wait under 180 s, so the wrapper stays in the foreground and simply loops on running, as both agent files already instruct:
- Lower
WAIT_DEFAULT_SECONDSto 150 (any value comfortably under 180 works). This fixes every caller at once. - Update the "blocks for up to 540 seconds" sentence in both agent files to match.
In practice, ten consecutive Sol audits that waited at most 150 s per call each made 2 to 4 waits, none was moved to the background, and all of them finished.
Open question for the maintainers. What ends the backgrounded tasks about five minutes after the wrapper goes idle? It may be tied to the subagent's lifecycle or to the prompt-cache window. If that kill is intended client behaviour, then any LifeOS wrapper that holds a long foreground call is exposed, not only these two.
- Ngôn ngữ chính
- TypeScript
- Star
- 19.8k
- Fork
- 2.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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 danielmiessler/LifeOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
danielmiessler/LifeOS#2830 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
danielmiessler/LifeOS#2822 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
danielmiessler/LifeOS#2818 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
danielmiessler/LifeOS#2817 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
danielmiessler/LifeOS#2808 ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của danielmiessler/LifeOS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
software-mansion/argent#1946 ·
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 63/100
podman-desktop/podman-desktop#20216 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
WordPress/ai#1386 · 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 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
omdsh-dev/DSH-better-sidebar#1205 ·
Maintainer thường phản hồi trong vòng 3 ngày