Repository navigation
fix(native): keep unread sticky after seen snapshots - #258
Merged
Merged
Conversation
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.
An authoritative already-seen shell could advance beyond the native tracker's last dispatched watermark. Marking that thread unread then sent another visit for the same activity, clearing the unread state. The same failure occurred after an intervening older snapshot.
Port the already-seen branch from
packages/client-runtime/src/state/threadVisits.ts: remember the greatest effective watermark before skipping, including wake timestamps. Keep the actual dispatch clock independent so observing a seen snapshot does not reset the throttle. Onlycrates/core/src/sidebar/visits.rsand the TV-WATERMARK ledger row change.Verification:
Now { visited_at: 20, opened: false }instead ofSkip(exit 101). Exact production/test hashes, source patches, executable hashes and raw logs are retained./private/tmp/native-factory-2f5f764a/228-worker/(immutable manifests, patches, argv/cwd/start/end/exit receipts, raw logs and hashes). Build-time HEAD is the basef5c06fd955a9c8a9d0baa050b4a6299ad3be554d; manifests bind the compiled working bytes to this PR. No claim that the later published commit existed at build time./private/tmp/native-factory-2f5f764a/228-worker/integration-smoke.png. This is not a bug reproduction. Known native: investigate missing cached text in offscreen captures #202 glyph loss remains separate; no full-frame legibility, production performance, live persistence, relay or grants claim.check:changedis not green and no repo-wide fallback was run. The formatting commit hook is bypassed to avoid rewriting unowned ledger rows; focused native gates andgit diff --checkprovide validation.TV-WATERMARK remains partial, and #228 remains open: native still lacks ten-minute environment/thread open dedupe and local-recents behavior. This PR implements only the already-seen sticky-watermark slice. No app/controller/snapshot, dependency, web, mobile, server or contract changes. No new entry point or wire behavior; the existing native tracker handles its existing callers. No user guidance changes are needed for this internal parity correction.
Built with GPT-6.1 Sol in Codex