* fix(#3448): thread next_action through debug auto-resume respawn Both /gsd-debug auto-resume call sites (Section 1c continue-path return handling and Section 4's non-terminal branch) respawned the session manager with identical session_params, making every resume prompt-indistinguishable from a cold start: the checkpoint's recorded next_action and the disposition that any earlier checkpoint was already answered never reached the respawned agent. Two auto-resumes then made no progress and the (correct) no-progress guard stalled the loop. The respawn now carries resume: true, resume_status, and resume_next_action sourced from the checkpoint file; the session manager documents the params and its Step 2 gsd-debugger template forwards them via a DATA_START/DATA_END <resume_directive> (Step 3d's shape), instructing the debugger to proceed directly on the recorded next action without re-raising answered checkpoints. The anti-loop guard (next_action-only heuristic, 3-resume hard cap) is untouched. * chore(#3448): set changeset pr to 3476 --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -33,6 +33,7 @@ Received from spawning orchestrator:
|
||||
- `tdd_mode` — boolean; true if TDD gate is active
|
||||
- `goal` — `find_root_cause_only` | `find_and_fix`
|
||||
- `specialist_dispatch_enabled` — boolean; true if specialist skill review is enabled
|
||||
- `resume` — boolean; present only on an orchestrator auto-resume re-spawn (#3448), accompanied by `resume_status` and `resume_next_action` (the checkpoint's `status`/`next_action` read from the debug file at resume time). When `resume: true`, any earlier checkpoint in the session was already answered — carry that disposition and the recorded next action into the Step 2 dispatch.
|
||||
</session_parameters>
|
||||
|
||||
<process>
|
||||
@@ -75,6 +76,16 @@ Continue debugging {slug}. Evidence is in the debug file.
|
||||
</required_reading>
|
||||
</prior_state>
|
||||
|
||||
{if resume: "<resume_directive>
|
||||
DATA_START
|
||||
**Status at pause:** {resume_status}
|
||||
**Recorded next action — resume here and proceed directly on it:** {resume_next_action}
|
||||
**Prior checkpoints:** already answered by the user; do not re-raise them. Route only
|
||||
genuinely NEW human input (a pending decision or destructive-action approval) back through
|
||||
the checkpoint loop, never a re-ask of an answered one.
|
||||
DATA_END
|
||||
</resume_directive>"}
|
||||
|
||||
<mode>
|
||||
symptoms_prefilled: {symptoms_prefilled}
|
||||
goal: {goal}
|
||||
|
||||
Reference in New Issue
Block a user