runner: keep export handoffs nonterminal through recovery
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user