Skip to content

fix(native): refresh snooze calendar today at local midnight - #266

Merged
rynfar merged 2 commits into
nativefrom
nw/265-snooze-today
Nov 5, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/265-snooze-today

Conversation

@rynfar

@rynfar rynfar commented Nov 5, 2026

Copy link
Copy Markdown
Owner

A Custom snooze calendar retained across local midnight kept yesterday's today decoration while its lower bound advanced. Refresh the calendar value inside the existing entity when the local day changes, preserving its focus, selected date, visible month/year view and page. Fresh requests keep their existing reset, and the existing owned minute task remains the only timer.

Addresses #265, the bounded N4 follow-up under #262/#242. SB-SNOOZE stays partial, #262 stays open, sidebar acceptance stays 5/16, newly accepted NONE. The other 130 ledger rows and UPSTREAM are unchanged. Single/bulk target/owner/grants, presets, settings/cancel and Undo paths are unchanged.

Validation: compiled failing-first state regression (Nov4 remained after synthetic Nov5 midnight), final synthetic state pass across month/year/leap/DST boundaries, strict workspace Clippy, all 1,406 default workspace tests, theme, 42 parity tests, conformance from client-runtime, normal build and explicit private snapshot build. All JOIN0. Changed Rust file rustfmt passes. Workspace cargo fmt stays RED with byte-identical output to the clean base; workspace vp1.4 format remains RED on the ledger, including its changed row. No repo-wide/check:changed fallback was run.

Local-only offscreen evidence, no uploads:

  • Before: /private/tmp/native265-b54-evidence/before-midnight-decoration.png
  • After: /private/tmp/native265-b54-evidence/after-decoration-trace.png
  • Full report, raw receipts, clock instrumentation, source/executable bindings and all intermediate failures/captures: /private/tmp/native265-b54-evidence/REPORT.md and INDEX.json.

The final pair shows Nov4's stale decoration replaced by Nov5's while Nov10 remains selected and the typed date/time remain. Process-local clock interposition is synthetic; snapshot GPUI time and shim wall time advance differently. The fixed capture uses 15.5px after an existing font-resize gesture versus the baseline 16px, plus a longer observed minute callback and call-stack tracing. Earlier glyph-loss and still-stale short captures are retained and explicitly not counted as passing. Known #202 glyph loss elsewhere prevents full-frame claims. No real windows, snooze/settings/provider commands, paid turns, OS-clock changes or live14700 were used. Root owns independent primary verification; this narrow PR does not accept the whole sidebar row.

The existing pre-commit vp staged hook reformatted the entire ledger in the first unpublished commit. A follow-up restores the exact tested row-only ledger with that hook disabled for the restoration; the final diff is byte-identical to the tested source patch. Both commits and the hook output are retained without rewriting history.

Built with GPT-6.1 Sol in Codex.

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