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.

feat: add TabRootView with Claude Code, Cowork, Codex tabs

libokai3b8c4eaa9af2
diff --git a/Codync-iOS/Views/ComingSoonView.swift b/Codync-iOS/Views/ComingSoonView.swift
new file mode 100644
index 00000000..0e7f44c8
--- /dev/null
+++ b/Codync-iOS/Views/ComingSoonView.swift
@@ -0,0 +1,41 @@
+import SwiftUI
+
+struct ComingSoonView: View {
+ let icon: String
+ let isSystemImage: Bool
+ let title: String
+ let description: String
+ @Environment(\.theme) private var theme
+
+ var body: some View {
+ VStack(spacing: 16) {
+ if isSystemImage {
+ Image(systemName: icon)
+ .font(.system(size: 48))
+ .foregroundStyle(theme.tertiaryText)
+ } else {
+ Image(icon)
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .frame(width: 48, height: 48)
+ .foregroundStyle(theme.tertiaryText)
+ }
+ Text(title)
+ .font(.title2.bold())
+ .foregroundStyle(theme.primaryText)
+ Text(description)
+ .font(.subheadline)
+ .foregroundStyle(theme.secondaryText)
+ .multilineTextAlignment(.center)
+ .padding(.horizontal, 40)
+ Text("Coming Soon")
+ .font(.caption.bold())
+ .foregroundStyle(theme.tertiaryText)
+ .padding(.horizontal, 12)
+ .padding(.vertical, 6)
+ .background(theme.tertiaryText.opacity(0.1), in: Capsule())
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ .background(theme.background)
+ }
+}
diff --git a/Codync-iOS/Views/IOSRootView.swift b/Codync-iOS/Views/IOSRootView.swift
index 56c7e62a..383c651f 100644
--- a/Codync-iOS/Views/IOSRootView.swift
+++ b/Codync-iOS/Views/IOSRootView.swift
@@ -4,22 +4,24 @@ import CodyncShared
struct IOSRootView: View {
@ObservedObject var receiver: CloudKitReceiver
@ObservedObject var liveActivityManager: LiveActivityManager
+ @ObservedObject var primarySessionManager: PrimarySessionManager
@AppStorage("codync_onboardingComplete") private var onboardingComplete = false
@AppStorage("codync_darkMode") private var isDarkMode = true
@State private var displayedSessions: [SessionState] = []
@State private var reorderTimer: Timer?
var body: some View {
- NavigationStack {
- Group {
- if !onboardingComplete {
+ Group {
+ if !onboardingComplete {
+ NavigationStack {
IOSOnboardingView()
- } else {
- IOSSessionListView(
- sessions: displayedSessions,
- liveActivityManager: liveActivityManager
- )
}
+ } else {
+ TabRootView(
+ sessions: displayedSessions,
+ liveActivityManager: liveActivityManager,
+ primarySessionManager: primarySessionManager
+ )
}
}
.environment(\.theme, CodyncTheme(isDark: isDarkMode))
@@ -29,11 +31,10 @@ struct IOSRootView: View {
onboardingComplete = true
}
liveActivityManager.updateSessions(sessions)
+ primarySessionManager.autoSelect(from: sessions)
}
.task {
- // Initialize with current sessions
displayedSessions = sortSessions(receiver.sessions)
- // Start 5-second reorder timer
reorderTimer?.invalidate()
reorderTimer = Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { _ in
Task { @MainActor in
diff --git a/Codync-iOS/Views/TabRootView.swift b/Codync-iOS/Views/TabRootView.swift
new file mode 100644
index 00000000..56f3e716
--- /dev/null
+++ b/Codync-iOS/Views/TabRootView.swift
@@ -0,0 +1,46 @@
+import SwiftUI
+import CodyncShared
+
+enum AppTab: String, CaseIterable {
+ case claudeCode
+ case cowork
+ case codex
+}
+
+struct TabRootView: View {
+ let sessions: [SessionState]
+ @ObservedObject var liveActivityManager: LiveActivityManager
+ @ObservedObject var primarySessionManager: PrimarySessionManager
+ @AppStorage("codync_selectedTab") private var selectedTab: String = AppTab.claudeCode.rawValue
+
+ var body: some View {
+ TabView(selection: $selectedTab) {
+ Tab("Claude Code", image: "ClaudeIcon", value: AppTab.claudeCode.rawValue) {
+ NavigationStack {
+ IOSSessionListView(
+ sessions: sessions,
+ liveActivityManager: liveActivityManager
+ )
+ }
+ }
+
+ Tab("Cowork", systemImage: "person.2.fill", value: AppTab.cowork.rawValue) {
+ ComingSoonView(
+ icon: "person.2.fill",
+ isSystemImage: true,
+ title: "Cowork",
+ description: "Monitor Claude Cowork sessions in real time"
+ )
+ }
+
+ Tab("Codex", image: "CodexIcon", value: AppTab.codex.rawValue) {
+ ComingSoonView(
+ icon: "CodexColorIcon",
+ isSystemImage: false,
+ title: "Codex",
+ description: "Track OpenAI Codex jobs and costs"
+ )
+ }
+ }
+ }
+}