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: remove pin button from macOS session rows

libokaie0ccabd6f5d7
diff --git a/Codync-macOS/Views/SessionListView.swift b/Codync-macOS/Views/SessionListView.swift
index 03767611..b4e9823e 100644
--- a/Codync-macOS/Views/SessionListView.swift
+++ b/Codync-macOS/Views/SessionListView.swift
@@ -10,7 +10,6 @@ struct SessionListView: View {
@State private var reorderTimer: Timer?
@State private var previousOrder: [String] = []
@State private var cardStyles: [String: GlassCardStyle] = [:]
- @State private var pinnedSessionIds: Set<String> = []
@Environment(\.theme) private var injectedTheme
private var theme: CodyncTheme {
@@ -35,7 +34,6 @@ struct SessionListView: View {
.preferredColorScheme(theme.isDark ? .dark : .light)
.task {
displayedSessions = stateManager.sessions
- pinnedSessionIds = (try? await CloudKitManager.shared.fetchPinnedSessionIds()) ?? []
reorderTimer = Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { _ in
Task { @MainActor in
let sorted = stateManager.sessions
@@ -63,7 +61,7 @@ struct SessionListView: View {
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 2) {
ForEach(displayedSessions) { session in
- SessionRowView(session: session, isPinned: pinnedSessionIds.contains(session.sessionId)) {
+ SessionRowView(session: session) {
withAnimation(.easeInOut(duration: 0.2)) { selectedSession = session }
}
.glassCard(cardStyles[session.sessionId] ?? .normal, isDark: theme.isDark)
diff --git a/Codync-macOS/Views/SessionRowView.swift b/Codync-macOS/Views/SessionRowView.swift
index 4b5d1657..ffb7dcb7 100644
--- a/Codync-macOS/Views/SessionRowView.swift
+++ b/Codync-macOS/Views/SessionRowView.swift
@@ -3,7 +3,6 @@ import CodyncShared
struct SessionRowView: View {
let session: SessionState
- var isPinned: Bool = false
let onSelect: () -> Void
@Environment(\.theme) private var theme
@State private var isHovered = false
@@ -66,32 +65,6 @@ struct SessionRowView: View {
.onHover { hovering in
withAnimation(.easeOut(duration: 0.12)) { isHovered = hovering }
}
- .overlay(alignment: .topTrailing) {
- if isHovered {
- Button(action: { togglePin() }) {
- Image(systemName: isPinned ? "pin.fill" : "pin")
- .font(.system(size: 9))
- .foregroundStyle(theme.secondaryText)
- .padding(4)
- }
- .buttonStyle(.plain)
- .transition(.opacity)
- }
- }
- }
-
- private func togglePin() {
- Task {
- do {
- if isPinned {
- try await CloudKitManager.shared.unpinSession(session.sessionId)
- } else {
- try await CloudKitManager.shared.pinSession(session.sessionId)
- }
- } catch {
- // Silently fail — pin is best-effort
- }
- }
}
private var subtitleColor: Color {