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

fix(session-flow): settle in-flight work the handoff depends on before writing it

Đã đóng
#6,439 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

@kyle-sexton đang làm issue này rồi.

Từ ngày 11/10/2026.

  • #7073 của @kyle-sexton — đang mở

Đá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
38/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ệ
markdown, shell

Hướng nghiên cứu

Read plugins/session-flow/skills/handoff/SKILL.md (the Named subagents inventoried this turn checklist) and plugins/session-flow/reference/off-thread-work.md. The skill currently inventories running subagents and still writes the save-point; change that path so work the handoff depends on is waited on, folded in, or explicitly left in flight after the user chooses. Done when a handoff is written only after everything it describes is settled, without free-hand edits to the handoff file.

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

Mô tả

needs-triage priority: medium

Problem

/session-flow:handoff writes the save-point while subagents the session spawned are still running. When one of them returns after the save, its result lands in the old session, and the handoff file is already stale: its brief, environment, remaining actions and Next: headlines describe the work as still in flight. The user then has to ask for the handoff to be updated, and the update is a hand repair (Edit plus save_point.py validate) of a file the skill says must never be written free-hand.

Observed 2026-10-05: a session wrote a handoff while a naming-tournament subagent was running. The tournament finished seconds later, the user picked a name in the same session, and the handoff had to be patched in five places (brief, completion criteria, environment, open questions, Next:).

Proposed fix

Before new, the skill settles in-flight work instead of only inventorying it:

  • For every subagent this session spawned that is still running, decide whether the handoff's content depends on its result (its output changes the brief, the next action, a decision or a criterion).
  • Dependent and expected to finish: wait for it (the harness re-invokes the session on completion), fold its result in, then write the save-point.
  • Independent of the handoff's content (for example a background dynamic workflow that writes its own durable output and that the next session only reads): hand off without waiting and record it in Environment to re-establish, as today.
  • Stuck or long-running dependent work: say so and let the user choose between waiting, cancelling, or handing off with it recorded as in flight.

The rule in one line: hand off only once everything the handoff describes is settled.

Out of scope

The continuation router's choice between handoff, compaction and clear; prompt-only handoffs with no in-flight work.

Related

  • plugins/session-flow/skills/handoff/SKILL.md "Named subagents inventoried this turn" checklist item (inventories, does not wait)
  • plugins/session-flow/reference/off-thread-work.md

🤖 Generated with Claude Code

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
7 giờ 57 phút
Pull request đã merge (30 ngày)
938

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 melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

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.