You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use >= for bundle cache mtime comparison to handle equal timestamps (#1155)
## Summary
- Changed bundle cache mtime comparison from strict `>` to `>=` in all 5
user extension loaders (models, reports, datastores, vaults, drivers)
- When source and bundle files share the same mtime (e.g. written in the
same second during a pre-commit hook), the cached bundle is now
correctly used instead of triggering a rebundle that may fail
- Added unit test verifying cached bundle is served when source and
bundle have equal mtimes
Closessysteminit/swamp-club#38
## Test Plan
- [x] New unit test: `bundleWithCache uses cache when source and bundle
have equal mtimes` — sets source and bundle to identical mtime via
`Deno.utime`, verifies cache is used without rebundling
- [x] All 51 existing `user_model_loader_test.ts` tests pass
- [x] Verified fix against manual reproduction in
`/tmp/swamp-repro-issue-38` — with equal mtimes the compiled binary now
logs `Using cached bundle` instead of rebundling
- [x] `deno check`, `deno lint`, `deno fmt` all pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments