Commit eeeb666
shuttle-ctl resume: file review-comment so dispatcher takes resume path
check_resume_intent/3 reads the latest --kind review-comment event for
payload.resume_mode == "previous" to decide whether to invoke
`claude --resume <uuid>`. Without this event, CLI-resumed fibers always
got a fresh worker even when shuttle.session.id was set — the resume
path was unreachable from CLI. Kanban worked because it writes the
review-comment correctly; CLI didn't.
Fix: after writing the block in the non-standing resume path, if
shuttle.session.id is set, file a review-comment with
resume_mode=previous. Mirrors exactly what the kanban's "Resume
previous" button does.
New helper: appendFeltHistoryReviewComment(host, fiberID, summary,
resumeMode) in history.go — same best-effort pattern as
appendFeltHistory but adds --kind review-comment + --field resume_mode.
Relies on the felt fix (commit 4166815) that allows --summary "".
Integration test coverage: dispatch_integration_test.exs
"CLI resume after fix: review-comment filed → --resume in run-script"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7c0aac5 commit eeeb666
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
109 | 121 | | |
110 | 122 | | |
111 | 123 | | |
| |||
0 commit comments