fix(macos): surface wizard cli errors

This commit is contained in:
Peter Steinberger
2026-01-12 08:33:21 +00:00
parent 006e1352d8
commit 1f63ee565f
2 changed files with 6 additions and 5 deletions

View File

@@ -60,6 +60,7 @@
- Control UI: flatten nav into a single horizontal scroll row on tablet/mobile (and always show collapsed group items). (#771) — thanks @carlulsoe.
- macOS: start + await local gateway before onboarding wizard begins.
- macOS: cancel onboarding wizard on close, recover if the gateway drops the session, and time out stalled gateway connects.
- macOS: wizard debug CLI now surfaces error status instead of exiting as complete.
- Models/Onboarding: configure MiniMax (minimax.io) via Anthropic-compatible `/anthropic` endpoint by default (keep `minimax-api` as a legacy alias).
- Agents/Browser: cap Playwright AI snapshots for tool calls (maxChars); CLI snapshots remain full. (#763) — thanks @thesash.
- Models: normalize Gemini 3 Pro/Flash IDs to preview names for live model lookups. (#769) — thanks @steipete.

View File

@@ -380,17 +380,17 @@ private func runWizard(client: GatewayWizardClient, opts: WizardCliOptions) asyn
do {
while true {
let status = wizardStatusString(nextResult.status) ?? (nextResult.done ? "done" : "running")
if status == "done" || nextResult.done {
print("Wizard complete.")
return
}
if status == "cancelled" {
print("Wizard cancelled.")
return
}
if status == "error" {
if status == "error" || (nextResult.done && nextResult.error != nil) {
throw WizardCliError.gatewayError(nextResult.error ?? "wizard error")
}
if status == "done" || nextResult.done {
print("Wizard complete.")
return
}
if let step = decodeWizardStep(nextResult.step) {
let answer = try promptAnswer(for: step)