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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix: align iOS UI with macOS — session row layout, sort order, sparkle phases
libokai6aef3666eb26
diff --git a/CodePulse-iOS/Views/IOSSessionListView.swift b/CodePulse-iOS/Views/IOSSessionListView.swiftindex cc04cc2a..97a624d5 100644--- a/CodePulse-iOS/Views/IOSSessionListView.swift+++ b/CodePulse-iOS/Views/IOSSessionListView.swift@@ -6,6 +6,16 @@ struct IOSSessionListView: View {@ObservedObject var liveActivityManager: LiveActivityManager@Environment(\.theme) private var theme+ /// Sort: working first → needsInput → rest, then by most recent activity+ private var sortedSessions: [SessionState] {+ sessions.sorted { a, b in+ let aWeight = a.status == .working ? 0 : a.status == .needsInput ? 1 : 2+ let bWeight = b.status == .working ? 0 : b.status == .needsInput ? 1 : 2+ if aWeight != bWeight { return aWeight < bWeight }+ return a.updatedAt > b.updatedAt+ }+ }+var body: some View {ScrollView {LazyVStack(spacing: 1) {@@ -14,7 +24,7 @@ struct IOSSessionListView: View {.padding(.top, 8).padding(.bottom, 4)- ForEach(sessions) { session in+ ForEach(sortedSessions) { session inNavigationLink(destination: IOSSessionDetailView(session: session)) {SessionRowContent(session: session,@@ -25,6 +35,7 @@ struct IOSSessionListView: View {)}.buttonStyle(.plain)+ .tint(theme.primaryText)}}}@@ -96,13 +107,16 @@ private struct SessionRowContent: View {if !session.model.isEmpty {SessionTagView(tag: session.model)}+ Spacer(minLength: 4)}- if let desc = statusDescription {+ if statusDescription != nil || !session.tasks.isEmpty {HStack(spacing: 4) {- Text(desc)- .font(.system(size: 13))- .foregroundStyle(subtitleColor)- .lineLimit(1)+ if let desc = statusDescription {+ Text(desc)+ .font(.system(size: 13))+ .foregroundStyle(subtitleColor)+ .lineLimit(1)+ }Spacer()Text(relativeTime(session.updatedAt)).font(.system(size: 12, design: .monospaced))diff --git a/CodePulse-iOS/Views/IOSStatusIndicator.swift b/CodePulse-iOS/Views/IOSStatusIndicator.swiftindex 8ec7227d..224257d7 100644--- a/CodePulse-iOS/Views/IOSStatusIndicator.swift+++ b/CodePulse-iOS/Views/IOSStatusIndicator.swift@@ -6,7 +6,6 @@ struct SessionStatusView: View {let completedTasks: Intlet totalTasks: Intvar waitingReason: WaitingReason?- @Environment(\.theme) private var themeprivate var hasTasks: Bool { totalTasks > 0 }private var progress: Double {@@ -16,16 +15,18 @@ struct SessionStatusView: View {var body: some View {if hasTasks {ProgressRingView(progress: progress, status: status, waitingReason: waitingReason)- .frame(width: 22, height: 22)+ .frame(width: 18, height: 18)} else if status == .working {ClaudeSparkleView()- .frame(width: 18, height: 18)+ .frame(width: 14, height: 14)} else {MinimalDotView(status: status, waitingReason: waitingReason)}}}+// MARK: - Progress Ring+private struct ProgressRingView: View {let progress: Doublelet status: SessionStatus@@ -39,15 +40,15 @@ private struct ProgressRingView: View {var body: some View {ZStack {Circle()- .stroke(theme.secondaryText.opacity(0.15), lineWidth: 2.5)+ .stroke(theme.secondaryText.opacity(0.15), lineWidth: 2)Circle().trim(from: 0, to: progress)- .stroke(theme.primaryText.opacity(0.7), style: StrokeStyle(lineWidth: 2.5, lineCap: .round))+ .stroke(theme.primaryText.opacity(0.7), style: StrokeStyle(lineWidth: 2, lineCap: .round)).rotationEffect(.degrees(-90))if isWorking {Circle().trim(from: max(0, progress - 0.08), to: progress)- .stroke(theme.primaryText.opacity(0.4), style: StrokeStyle(lineWidth: 3.5, lineCap: .round))+ .stroke(theme.primaryText.opacity(0.4), style: StrokeStyle(lineWidth: 3, lineCap: .round)).rotationEffect(.degrees(-90)).blur(radius: 1.5).opacity(isPulsing ? 1.0 : 0.3)@@ -55,8 +56,8 @@ private struct ProgressRingView: View {if needsAttention {Circle().fill(theme.waitingColor(for: waitingReason))- .frame(width: 6, height: 6)- .offset(x: 7, y: -7)+ .frame(width: 5, height: 5)+ .offset(x: 6, y: -6)}}.animation(@@ -68,6 +69,8 @@ private struct ProgressRingView: View {}}+// MARK: - Minimal Dot+private struct MinimalDotView: View {let status: SessionStatusvar waitingReason: WaitingReason?@@ -81,16 +84,16 @@ private struct MinimalDotView: View {if needsPulse {Circle().fill(dotColor.opacity(0.3))- .frame(width: 20, height: 20)+ .frame(width: 16, height: 16).scaleEffect(isPulsing ? 1.4 : 0.8).opacity(isPulsing ? 0 : 0.6)}Circle().fill(dotColor)- .frame(width: 10, height: 10)+ .frame(width: 9, height: 9).scaleEffect(isPulsing && needsPulse ? 1.15 : 1.0)}- .frame(width: 18, height: 18)+ .frame(width: 14, height: 14).animation(needsPulse ? .easeInOut(duration: 1.5).repeatForever(autoreverses: true) : .default,value: isPulsing@@ -103,7 +106,6 @@ private struct MinimalDotView: View {switch status {case .needsInput, .error:return theme.waitingColor(for: waitingReason)- case .compacting: return theme.accentcase .idle: return theme.tertiaryTextcase .completed: return theme.tertiaryText.opacity(0.7)default: return theme.tertiaryText@@ -111,8 +113,10 @@ private struct MinimalDotView: View {}}+// MARK: - Claude Sparkle+struct ClaudeSparkleView: View {- private static let phases: [String] = ["·", "✢", "✳", "✶", "✻", "✽"]+ private static let phases: [String] = ["·", "✢", "✶", "✻", "✽"]private static let cycle: [String] = phases + phases.dropFirst().dropLast().reversed()@Environment(\.theme) private var theme@State private var currentIndex = 0@@ -120,7 +124,7 @@ struct ClaudeSparkleView: View {var body: some View {Text(Self.cycle[currentIndex])- .font(.system(size: 14))+ .font(.system(size: 12)).foregroundStyle(theme.primaryText.opacity(opacity)).onReceive(timer) { _ incurrentIndex = (currentIndex + 1) % Self.cycle.countdiff --git a/CodePulse-macOS/Views/StatusDotView.swift b/CodePulse-macOS/Views/StatusDotView.swiftindex c7b0ca40..a3b62d39 100644--- a/CodePulse-macOS/Views/StatusDotView.swift+++ b/CodePulse-macOS/Views/StatusDotView.swift@@ -120,7 +120,7 @@ private struct MinimalDotView: View {// MARK: - Claude Sparklestruct ClaudeSparkleView: View {- private static let phases: [String] = ["·", "✢", "✳", "✶", "✻", "✽"]+ private static let phases: [String] = ["·", "✢", "✶", "✻", "✽"]private static let cycle: [String] = phases + phases.dropFirst().dropLast().reversed()@Environment(\.theme) private var theme@State private var currentIndex = 0