ios: preserve chat scroll position on resume
TestFlight / testflight (push) Successful in 1m46s

This commit is contained in:
2026-07-12 13:57:45 -07:00
parent 93ca8a76c3
commit 622659f6ca
3 changed files with 8 additions and 3 deletions
@@ -67,7 +67,6 @@ struct SybilChatTranscriptView: View {
.scrollDismissesKeyboard(.interactively)
.onAppear {
syncKnownToolCallMessageIDs()
scrollToBottom(with: proxy, animated: false)
}
.onChange(of: toolCallMessageIDSignature) { _, _ in
syncKnownToolCallMessageIDs()
@@ -1752,13 +1752,16 @@ final class SybilViewModel {
switch target {
case let .chat(chatID):
SybilLog.debug(SybilLog.app, "Refreshing chat \(chatID)")
let isSelectingDifferentChat = selectedChat?.id != chatID
let chat = try await client.getChat(chatID: chatID)
guard selectedItem == target, draftKind == nil else {
return
}
selectedChat = chat
selectedSearch = nil
requestChatBottomPin()
if isSelectingDifferentChat {
requestChatBottomPin()
}
if let provider = chat.lastUsedProvider,
let model = chat.lastUsedModel,