runner: keep export handoffs nonterminal through recovery

This commit is contained in:
2026-10-20 21:19:26 +01:00
parent ca78b24f47
commit ec3eda9e05
28 changed files with 370 additions and 82 deletions
+4 -1
View File
@@ -27,6 +27,9 @@ func lastWaitingStep(r *protocol.RunDetail) (protocol.RunStep, bool) {
// waiting step and falls back to the pinned graph's edges when a step recorded
// no options.
func (m Model) waitingStage() (string, []string, string) {
if m.runDetail != nil && m.runDetail.ExportPendingSequence > 0 {
return m.runDetail.CurrentStage, nil, ""
}
if m.runDetail == nil {
return "", nil, ""
}
@@ -43,7 +46,7 @@ func (m Model) waitingStage() (string, []string, string) {
}
func (m Model) openDecision() (tea.Model, tea.Cmd) {
if m.runDetail == nil || m.runDetail.Status != protocol.RunStatusWaiting {
if m.runDetail == nil || m.runDetail.Status != protocol.RunStatusWaiting || m.runDetail.ExportPendingSequence > 0 {
m.runError = "This run is not waiting for a decision."
return m, nil
}