Repository navigation
fix(windows): preserve pre-epoch shortcut timestamp milliseconds - #10305
Merged
Merged
Conversation
2 tasks done
kaoru0822-kitauji
marked this pull request as ready for review
November 13, 2026 07:57
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The changed code appears safe to merge. SummaryFixes pre-1970 fractional timestamps in Shell Link headers and Tracker UUIDs through one shared helper.
Reviews (4) · Last reviewed commit: "fix(windows): keep pre-epoch shortcut ti..." · Reviewed by Greptile |
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.
Fixes #10303.
Shell Link times just before 1970 were rounded into the following millisecond: stored FILETIME
116444735999999999displayed1970-01-01T00:00:00.000Zinstead of1969-12-31T23:59:59.999Z. Tracker UUID timestamps had the same error.Convert each unsigned 100-ns clock to milliseconds before subtracting its millisecond-aligned epoch. One helper owns both projections. Exact raw ticks and zero FILETIME's unknown value remain intact. No related production cleanup remains.
Scope and contracts
Existing read-only Shell Link inspection; no maintainer scope decision is required. CLI/MCP schemas, Evidence provenance, generated metadata, installation and target authority are unchanged. Only the derived ISO value changes for pre-1970 fractional milliseconds. Rechecked main and all-state related PRs before pushing. #10280 touches separate path functions; none of that work is included.
Executed validation
macOS arm64; pinned Node 24.22.1/npm 11.16.0; base
54906fdb1.npm run test:focused -- src/native/windows/WindowsShortcutParser.test.ts tests/acceptance/windowsShortcutCli.test.ts tests/boundary/mcp/windowsShortcutMcp.test.ts tests/boundary/filesystem/windowsShortcut.test.ts: 76 passed, four files; required runtime/skill build passed.npm run check: passed, including typecheck, lint, formatting, Knip, metadata, architecture guards and typed lint. Existing advisory typed-lint warnings are reported by the gate.check:fastpassed;git diff --checkpassed.Coverage: all three header clocks and all four Tracker UUIDs across negative/exact/positive millisecond boundaries, earliest nonzero FILETIME versus absent zero, plus public JSON CLI and stdio MCP delivery with source path and raw ticks retained. No resource lifecycle changes. Checks use authored Shell Link bytes; Windows APIs and a corpus of Windows-produced links were not exercised. Full CI is pending, and no human review is claimed.
Author readiness
Human owner: @kaoru0822-kitauji