Repository navigation
feat(coach): past conversations list with swipe-to-delete and full cleanup - #149
Open
foureight84 wants to merge 1 commit into
Open
foureight84 wants to merge 1 commit into
foureight84 wants to merge 1 commit into
Conversation
…eanup Port Android PR saksham2001#133's Coach conversation history improvements to iOS: - Hide empty threads and derive titles from the opening user message (or Photo for image-only sends) with message counts, newest first. - Add swipe-to-delete and Delete All (with confirmation dialogs), deleting messages, CoachToolCall rows, and on-disk CoachAttachmentStore photos. - Defer creating CoachConversation rows until first send instead of persisting empty threads on + taps. - Cancel active in-flight turns on deletion and drop replies for deleted conversations instead of leaving orphaned rows.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports Android PR #133's AI Coach conversation history improvements to iOS.
Summary
CoachHistoryService.swift,CoachView.swift):+taps and orders conversations newest-first with message counts."Photo"for image-only sends) as a single source of truth.CoachConversationrows until the first message is sent (activeConversationId = nilfor unsent threads).CoachHistorySheet,CoachHistoryService.swift):CoachMessagerows,CoachToolCalltrace rows, and on-diskCoachAttachmentStorephotos. Deleting the active thread starts a fresh unsent thread.CoachViewModel.swift):sendingConversationIdandactiveTurnTaskso the trace indicator only renders on the active sending thread, active turns are cancelled if their conversation is deleted mid-flight, and replies for deleted conversations are dropped instead of leaving orphaned rows.Verification
xcodebuild test -project PulseLoop.xcodeproj -scheme PulseLoop -destination 'platform=iOS Simulator,name=iPhone 17' -only-testing:PulseLoopTests/CoachHistoryTests -only-testing:PulseLoopTests/CoachResponseTests -only-testing:PulseLoopTests/CoachTransparencyTests— 11/11 tests passed.