Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(ios): refresh voice models for every cloud call

leepokaid21480353f40
diff --git a/apps/ios/Kit/Sources/CodyncUI/Call/CallView.swift b/apps/ios/Kit/Sources/CodyncUI/Call/CallView.swift
index 4d03f0f6..6ad68046 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Call/CallView.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Call/CallView.swift
@@ -63,6 +63,10 @@ struct CallView: View {
/// Starts the engine: a realtime provider on the key kept by the computer, or on-device speech.
private func begin(cloud provider: VoiceProvider?) {
+ // Picks up the computer's newest models for the next call; this one starts right away.
+ if provider != nil, let client = model.client {
+ Task { if let status = try? await client.voiceStatus() { VoiceSettings.remember(status) } }
+ }
let op = CallOperator(model: model, botId: botId)
let engine: any VoiceEngine
if let provider, VoiceSettings.isSpeechMode(provider) {
@@ -78,10 +82,6 @@ struct CallView: View {
speak: { try await client().voiceSpeak(provider, model: speechModel, voice: voice, text: $0) },
send: { [model, botId] in model.send($0, to: botId) }
))
- // Picks up the computer's newest models for the next call; this one starts right away.
- if provider != nil, let client = model.client {
- Task { if let status = try? await client.voiceStatus() { VoiceSettings.remember(status) } }
- }
cloudStartedAt = .now
} else if let provider {
let chosen = VoiceSettings.model(provider)