Repository navigation
feat(core): TopicDetailSession as sole topic-detail control plane - #126
Merged
Merged
Conversation
Move pagination, prefetch, MessageBus refresh, and mutation reconcile into a Rust per-topic session with UI snapshots, and thin iOS/Android hosts to command/observer consumers while removing the old page-fetch RPC path. Co-authored-by: Cursor <cursoragent@cursor.com>
Format and clippy-clean the new Rust modules, rename session handle close to release for Kotlin AutoCloseable, fix Android unread decision FFI name, and regenerate Fire.xcodeproj for the new Swift snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
xcodegen only includes Generated/FireUniFfi when those files exist; regenerate with stubs so CI's post-artifact project check matches. Co-authored-by: Cursor <cursoragent@cursor.com>
Profile and route hosts still read topicDetailStore after it became private, which broke the iOS Test CI compile. Co-authored-by: Cursor <cursoragent@cursor.com>
Fire targets iOS and Android only; the windows-latest host-test job was unused product coverage and wasted CI minutes. Co-authored-by: Cursor <cursoragent@cursor.com>
Mark topic-detail open/cancel/close as nonisolated on FireSessionStore so the MainActor store can open handles synchronously, and replace the four-UInt64 tuple with an Equatable revision fingerprint for Combine. Co-authored-by: Cursor <cursoragent@cursor.com>
Use camelCase topicId/postId labels, read vote/flag state from UI snapshots, and accept TopicDetailTypingUserState in the assembler. Co-authored-by: Cursor <cursoragent@cursor.com>
Derive owned/mutating post state from UI snapshots, and fix short-circuit await plus actor-isolated completeReadPathLogin in applySession. Co-authored-by: Cursor <cursoragent@cursor.com>
The non-snapshot branch was missing an explicit return, which failed the Xcode 27 Swift compile in iOS Test. Co-authored-by: Cursor <cursoragent@cursor.com>
The projection helper had a local binding before constructing TopicPostState, so Swift required an explicit return. Co-authored-by: Cursor <cursoragent@cursor.com>
postLayoutContentToken omitted return on the non-snapshot path, which failed the Swift compile under Xcode 27. Co-authored-by: Cursor <cursoragent@cursor.com>
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
TopicDetailSession(actor/registry/window/MessageBus) that owns pagination, prefetch, refresh, optimistic mutations, and UI snapshot projection.FireTopicDetailStoreand AndroidTopicDetailViewModelto command + observer consumers; keep local chrome (expand/search/keyboard) on the host.fetchTopicDetailPage/loadMoreTopicPosts/ source-snapshot host RPC path and sync architecture docs (2026-09-22-ios-topic-detail-session.md,fire-native-architecture.md).Test plan
cargo test -p fire-core -p fire-models -p fire-uniffi-topics(already green locally)completeReadPathLoginwithout logoutMade with Cursor