fix: harden operations and configuration recovery

This commit is contained in:
proxyctl coordinator
2026-08-30 11:13:45 +08:00
parent e34bf7d989
commit 8928986830
27 changed files with 542 additions and 125 deletions
+14 -1
View File
@@ -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 {