From 3217c3f66e045bffa6ec6da5289c0f55c0516f51 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sun, 6 Sep 2026 14:17:42 -0700 Subject: [PATCH] ios: add copy session ID to chat menu --- ios/Packages/Sybil/Sources/Sybil/SybilSidebarView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ios/Packages/Sybil/Sources/Sybil/SybilSidebarView.swift b/ios/Packages/Sybil/Sources/Sybil/SybilSidebarView.swift index 49ad22a..02e9db2 100644 --- a/ios/Packages/Sybil/Sources/Sybil/SybilSidebarView.swift +++ b/ios/Packages/Sybil/Sources/Sybil/SybilSidebarView.swift @@ -1,5 +1,6 @@ import Observation import SwiftUI +import UIKit struct SybilSidebarView: View { @Bindable var viewModel: SybilViewModel @@ -169,7 +170,7 @@ struct SybilSidebarItemList: View { Label(item.starred ? "Unstar" : "Star", systemImage: item.starred ? "star.slash" : "star") } - if item.kind == .chat { + if case let .chat(chatID) = item.selection { Button { forkChat(item) } label: { @@ -183,6 +184,12 @@ struct SybilSidebarItemList: View { } label: { Label("Rename", systemImage: "pencil") } + + Button { + UIPasteboard.general.string = chatID + } label: { + Label("Copy Session ID", systemImage: "doc.on.doc") + } } Button(role: .destructive) {