Skip to content

Pin the access-log story's timestamps to the story clock - #1487

Merged
nedtwigg merged 1 commit into
mainfrom
fix/access-log-story-clock
Oct 31, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
fix/access-log-story-clock

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

PairedPhonesAndAccessLog built its access log in a parameters literal, which runs at module load — before the meta's beforeEach pins Date.now to STORY_NOW. The log carried the CI runner's wall-clock time, so every PR showed an Argos diff on modals-remotecontrolsection--paired-phones-and-access-log (#1482, #1483, #1485: same baseline, three different compare images, only the log rows differ).

  • pairedDevices and accessLogEntries in lib/src/host/remote/test-burrow-link.ts take an optional now (default Date.now(), so tests are unchanged).
  • The story passes STORY_NOW; OneTimeEndedNetworkNotAllowed's refusal at does too (not rendered there today, but the same trap).
  • The STORY_NOW comment says why a parameters literal must use it directly.

Two local Argos renders a minute apart are byte-identical. Expect one final baseline change on this PR (log now reads Dec 30–31, 2025, matching the paired-phones list above it); approve it and the snapshot is stable thereafter.

🤖 Generated with Claude Code

`PairedPhonesAndAccessLog` built its log in a `parameters` literal, which runs at module load, before the meta's `beforeEach` pins `Date.now` to `STORY_NOW`. The log therefore carried the CI runner's wall-clock time, and every PR showed an Argos diff on `modals-remotecontrolsection--paired-phones-and-access-log`. `pairedDevices` and `accessLogEntries` now take an optional `now`, and the story passes `STORY_NOW`; `OneTimeEndedNetworkNotAllowed`'s refusal time gets the same treatment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a1c721
Status: ✅  Deploy successful!
Preview URL: https://899c0bb6.mouseterm.pages.dev
Branch Preview URL: https://fix-access-log-story-clock.mouseterm.pages.dev

View logs

@nedtwigg
nedtwigg merged commit 044cab3 into main Oct 31, 2026
18 checks passed
@nedtwigg
nedtwigg deleted the fix/access-log-story-clock branch October 31, 2026 17:43
nedtwigg added a commit that referenced this pull request Nov 1, 2026
Brings in #1487's story-clock fix for the access-log story, which is the one changed Argos snapshot every open PR showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nedtwigg added a commit that referenced this pull request Nov 1, 2026
Brings in #1487's story-clock fix for the access-log story, which is the one changed Argos snapshot every open PR showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nedtwigg added a commit that referenced this pull request Nov 1, 2026
Brings in #1487's story-clock fix for the access-log story, which is the one changed Argos snapshot every open PR showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants