Skip to content

feat: incremental topic-detail snapshots and shared session runtimes - #130

Merged
fannnzhang merged 4 commits into
mainfrom
feature/incremental-snapshots-and-session-runtimes
Sep 26, 2026
Merged

fannnzhang merged 4 commits into
mainfrom
feature/incremental-snapshots-and-session-runtimes

Conversation

@fannnzhang

Copy link
Copy Markdown
Contributor

Summary

  • Topic detail now publishes generation-based diffs instead of full TopicDetailUiSnapshotState; iOS and Android hosts keep a mirrored snapshot and pull full() only on first frame or baseline mismatch.
  • Chat list/channel and topic-tracking live in Rust runtimes; hosts apply snapshots and home patches instead of merging MessageBus events locally.
  • Cloudflare recovery policy, browser-transport preference, and session recovery gates move into the shared core so both platforms only present WebView / settings UI.

Test plan

  • Open a 300+ post topic: first frame loads via full(), subsequent likes / typing / scroll publish incremental rows only
  • Vote, bookmark, reply, load more, and pull-to-refresh stay on the native cell path with no full-snapshot flicker
  • Home list applies topic-tracking patches and shows the new-topics pill without a full reload
  • Chat inbox unread/mention badges and a single channel (upsert / reaction / pin) update from Rust snapshots
  • Trigger a Cloudflare challenge: coordinator only presents WebView; recovery epoch does not logout or launch Google login
  • Toggle browser transport in settings and confirm native vs browser-session requests follow the shared policy
  • Run cargo test -p fire-core -p fire-models plus iOS/Android unit tests for snapshot mirrors, recovery policy, and home realtime rows

Made with Cursor

fannnzhang and others added 4 commits September 26, 2026 20:22
Publish topic-detail diffs instead of full snapshots, lift chat and topic-tracking into Rust runtimes, and keep hosts as snapshot mirrors with a shared Cloudflare recovery policy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Idle CF completion now publishes generation before rebuild, and the
browser HTTP callback uses a session-owned error so Kotlin UniFFI
bindings type-check.

Co-authored-by: Cursor <cursoragent@cursor.com>
Swift does not allow default values to reference other parameters, so
the topic-detail snapshot mirror tests failed to compile in CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
The concurrent presentation-gate test raced on CI because the owner could finish before the joiner attached. Bind joiners to the owner session so a later presentation cannot overwrite their result.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fannnzhang
fannnzhang merged commit d15741b into main Sep 26, 2026
11 checks passed
@fannnzhang
fannnzhang deleted the feature/incremental-snapshots-and-session-runtimes branch September 26, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant