fix: harden operations and configuration recovery
This commit is contained in:
@@ -149,7 +149,20 @@ func updateKey(model Model, key string) Model {
|
||||
msg = tea.KeyMsg{Type: keyType}
|
||||
}
|
||||
updated, _ := model.Update(msg)
|
||||
return updated.(Model)
|
||||
model = updated.(Model)
|
||||
// In-memory test modules publish terminal operation updates synchronously.
|
||||
// Drain only updates already available; real in-flight operation tests remain
|
||||
// under their explicit channel control.
|
||||
for model.operation.active && isProfileMutation(model.operation.intent.Kind) {
|
||||
select {
|
||||
case update, open := <-model.operation.updates:
|
||||
updated, _ = model.Update(operationProgress{updates: model.operation.updates, update: update, closed: !open})
|
||||
model = updated.(Model)
|
||||
default:
|
||||
return model
|
||||
}
|
||||
}
|
||||
return model
|
||||
}
|
||||
|
||||
func updateRunes(model Model, value string) Model {
|
||||
|
||||
Reference in New Issue
Block a user