feat(ios): persist mobile conversations and drafts#120
Merged
Conversation
tcballard
marked this pull request as ready for review
July 24, 2026 13:44
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.
Summary
Implements the conversation-store boundary in Phase 2 of
WF-ROADMAP-0016.Adds:
ConversationStoreprotocol;route receipts, retention, export, and deletion;
recovery;
WF-ADR-0049.Scope
Included
@ModelActor;VersionedSchemaandSchemaMigrationPlan;and JSON sharing;
Excluded
Product / Architecture Decisions
ConversationStore; SwiftUI and routing code never own a model context.are still evolving. Metadata needed for list and retention queries remains
directly indexed by SwiftData.
schema changes add versions rather than rewriting v1.
error path.
fails. The UI warns that data is not durable rather than crashing or claiming
it was saved.
User-Facing Contract
CLI
No CLI behavior changes.
Human Output
after confirmation.
errors.
JSON Output
Conversation export uses:
{ "schemaVersion": 1, "threads": [ { "id": "UUID", "title": "First prompt-derived title", "createdAt": "ISO-8601", "updatedAt": "ISO-8601", "messages": [], "draft": "" } ] }Messages may contain a compact
routeReceipt. Exports never contain providercredentials or raw provider envelopes.
Exit Codes
No exit-code changes.
Verification
Ran
Covered
reset behavior;
The matching local executable Simulator runtime is still unavailable on this
Mac. Apple Mobile CI remains the authoritative simulator execution gate.
Review Path
decisions/WF-ADR-0049-mobile-conversation-persistence.mdios/WayfinderIOS/WayfinderIOS/ConversationStore.swiftios/WayfinderIOS/WayfinderIOS/AppModel.swiftios/WayfinderIOS/WayfinderIOS/WayfinderIOSApp.swiftConversationStoreTests.swiftandAppModelTests.swiftNotes For Reviewer
Pay particular attention to the atomic thread-payload choice, actor isolation,
startup fallback wording, retention cutoff behavior, and the fact that this
slice persists routing previews without claiming provider execution.
The SwiftData schema is v1. Future changes must add a schema version and
migration stage rather than modifying the historical model in place.
Implementation Process
Implemented with AI assistance under the roadmap contract; final scope, review,
and acceptance decisions remain with the maintainer.