fix: improve model setup and native workflows

This commit is contained in:
public-repo-gate
2026-09-13 01:03:00 +03:00
parent 1cefe5b2ee
commit 30dae8b9a3
92 changed files with 13819 additions and 7022 deletions
@@ -7,6 +7,7 @@
// Ничего не выбрать - нормальный исход. Диктовка и раскладка работают без
// агента, и шаг об этом говорит прямо, а не намекает.
import SwiftUI
import IrizCore
struct FirstRunAgentConnect: View {
@ObservedObject var model: FirstRunModel
@@ -36,6 +37,15 @@ struct FirstRunAgentConnect: View {
}
.frame(maxHeight: 150)
}
if let error = model.agentConnectionError {
Text(error)
.font(.system(size: 12.5))
.multilineTextAlignment(.center)
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: 430)
Button(L("firstrun.agentSettings", "Настройки агента…")) { model.openAgentSettings?() }
.modifier(FirstRunTrialButtonStyle())
}
}
.onAppear { model.refreshAgents() }
}