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.

chore(ios): open the State tab on a gallery from a launch variable

leepokai2a538fc7b819
diff --git a/apps/ios/App/CodyncApp.swift b/apps/ios/App/CodyncApp.swift
index dd1a2282..36a0f7e6 100644
--- a/apps/ios/App/CodyncApp.swift
+++ b/apps/ios/App/CodyncApp.swift
@@ -50,6 +50,7 @@ struct CodyncApp: App {
_ = try? await app.accounts.pair(p, deviceName: UIDevice.current.name, platform: "ios")
}
if ProcessInfo.processInfo.environment["CODYNC_OPEN_USAGE"] != nil { app.tab = .state; app.showUsage = true }
+ if ProcessInfo.processInfo.environment["CODYNC_STATE_SURFACE"] != nil { app.tab = .state }
// Screenshots: CODYNC_OPEN_URL=codync://bot/<botId>?scope=local&computer=<id>, without the system prompt.
if let s = ProcessInfo.processInfo.environment["CODYNC_OPEN_URL"], let url = URL(string: s) {
try? await Task.sleep(for: .seconds(1))
diff --git a/apps/ios/Views/RootView.swift b/apps/ios/Views/RootView.swift
index 1938ddf7..8a937b53 100644
--- a/apps/ios/Views/RootView.swift
+++ b/apps/ios/Views/RootView.swift
@@ -159,7 +159,18 @@ private struct StateTab: View {
@Environment(AppStore.self) private var app
@Environment(\.accessibilityReduceMotion) private var reduceMotion
- @State private var surface = Surface.widget
+ // Screenshots: CODYNC_STATE_SURFACE=widget|liveActivity|island opens the tab on that gallery.
+ @State private var surface: Surface = {
+ #if DEBUG
+ switch ProcessInfo.processInfo.environment["CODYNC_STATE_SURFACE"] {
+ case "liveActivity": return .liveActivity
+ case "island": return .island
+ default: return .widget
+ }
+ #else
+ return .widget
+ #endif
+ }()
var body: some View {
VStack(spacing: 0) {