Session idle for 40 hours resumed on its own and ran 139 turns

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

Hướng nghiên cứu

The reproduction is clear but the cause is not: start by tracing the session lifecycle around the transition to idle, then where a server restart delivers notices to live sessions, and finally how a subagent-completion message is queued and delivered to its parent. The reporter does not know whether the restart notice or the seven-day-stale completion is the trigger, so both paths need reading. Done looks like a test that restarts a server with an idle session and a stale subagent completion and asserts no assistant turns run without a user message.

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

Mô tả

area/core platform/macos triaging type/bug version/v2

Session idle for 40 hours resumed on its own and ran 139 turns

What happens

A session that had reached idle resumed by itself after 40 hours and ran 139 assistant
turns over 40 minutes. There was no user message in that window. The user was working in a
different session and was not aware this one was running.

The first turn acted on a subagent completion from a subagent session that had finished
seven days earlier, after the user had explicitly stopped it.

Expected

A session that has reached idle has no work in progress. It should not resume without a
user message.

Steps

  1. Let a session reach idle.
  2. Leave it for a long period.
  3. Restart the server.
  4. The session resumes without a user message and runs turns.

Environment

  • opencode v2.3.0
  • macOS (Darwin)
  • No plugins

Additional context

A restart notice was delivered to five sessions 5 seconds before this one resumed. Whether
the restart or the stale subagent completion was the proximate trigger is not known to me.

Whether delayed subagent-completion delivery resuming its parent is intended is also not
known. If it is, the seven-day delay and the 139 unattended turns are still the issue.

Ngôn ngữ chính
TypeScript
Star
227k
Fork
30.7k
Merge trung bình
3 giờ 57 phút
Pull request đã merge (30 ngày)
484

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.