fix: synchronize read state across web and native clients

Track readable content revisions and durable read cursors in the hub. Acknowledge only rendered foreground tails, persist offline read operations, and preserve newer manual unread choices across devices.

Migrate existing history to a read baseline and cover pagination receipts with shared native conformance fixtures.
This commit is contained in:
weishu
2026-11-01 09:52:51 +08:00
parent ee4ac238cb
commit 5ef4304a4a
139 changed files with 2352 additions and 1053 deletions
+2
View File
@@ -125,6 +125,8 @@ export type SessionResponse = { session: Session }
export type MessagesResponse = {
messages: DecryptedMessage[]
page: {
/** Readable revision covered by this tail snapshot; absent on history pages. */
readThroughRevision?: number
direction: 'latest' | 'before' | 'after'
limit: number
epoch: number