Opened by the office worker for the Engineering desk.
The owner merges. Merging deploys.
Task tmwl1ew5518, engineering desk.
Commits:
Reload once when a lazy route chunk 404s after a deploy (GlitchTip #160)
I fixed Caelum #160 and committed it as 73b315f on branch office/engineering/tmwl1ew5518 in ~/Code/caelum, based on origin/main 1d34162. It is not pushed. The full suite passes: client 81 of 81, server 545 of 545, and the nox suites pass.
Cause: every view is loaded only when someone opens its page (client/src/routes.js:9). After a deploy changes the file names, a tab opened earlier asks for a file that no longer exists. Nothing in the client caught that failure.
Fix: the new file client/src/utils/stale-chunk.js reloads the page the user was going to. It also covers the same failure outside page changes. It reloads at most once per 60 seconds, so a file that is really missing still shows up in GlitchTip. client/src/main.js:24 turns it on.
Test:client/test/stale-chunk.test.js has 10 tests. The wiring test failed before the main.js change and passes after it.
The browser behaviour has not been checked in a real browser. The plan-eng-review skill loaded, but its question steps assume someone at a keyboard, so I used only its scope check. No prose went out, so the writing pass was not needed.
Opened by the office worker for the Engineering desk.
The owner merges. Merging deploys.
Task tmwl1ew5518, engineering desk.
Commits:
- Reload once when a lazy route chunk 404s after a deploy (GlitchTip #160)
I fixed Caelum #160 and committed it as 73b315f on branch `office/engineering/tmwl1ew5518` in `~/Code/caelum`, based on origin/main 1d34162. It is not pushed. The full suite passes: client 81 of 81, server 545 of 545, and the nox suites pass.
- **Cause:** every view is loaded only when someone opens its page (`client/src/routes.js:9`). After a deploy changes the file names, a tab opened earlier asks for a file that no longer exists. Nothing in the client caught that failure.
- **Fix:** the new file `client/src/utils/stale-chunk.js` reloads the page the user was going to. It also covers the same failure outside page changes. It reloads at most once per 60 seconds, so a file that is really missing still shows up in GlitchTip. `client/src/main.js:24` turns it on.
- **Test:** `client/test/stale-chunk.test.js` has 10 tests. The wiring test failed before the `main.js` change and passes after it.
The browser behaviour has not been checked in a real browser. The plan-eng-review skill loaded, but its question steps assume someone at a keyboard, so I used only its scope check. No prose went out, so the writing pass was not needed.
A tab opened before a deploy asks for the old hashed Landing CSS or JS
file, gets a 404, and the navigation dies with "Unable to preload CSS".
router.onError now loads the destination again, and vite:preloadError
reloads for imports outside the router. A sessionStorage stamp limits
this to one reload per 60 seconds so a chunk missing for another reason
still surfaces as an error.
https://bugs.extant2000.com/caelum/issues/160
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Opened by the office worker for the Engineering desk.
The owner merges. Merging deploys.
Task tmwl1ew5518, engineering desk.
Commits:
I fixed Caelum #160 and committed it as
73b315fon branchoffice/engineering/tmwl1ew5518in~/Code/caelum, based on origin/main1d34162. It is not pushed. The full suite passes: client 81 of 81, server 545 of 545, and the nox suites pass.client/src/routes.js:9). After a deploy changes the file names, a tab opened earlier asks for a file that no longer exists. Nothing in the client caught that failure.client/src/utils/stale-chunk.jsreloads the page the user was going to. It also covers the same failure outside page changes. It reloads at most once per 60 seconds, so a file that is really missing still shows up in GlitchTip.client/src/main.js:24turns it on.client/test/stale-chunk.test.jshas 10 tests. The wiring test failed before themain.jschange and passes after it.The browser behaviour has not been checked in a real browser. The plan-eng-review skill loaded, but its question steps assume someone at a keyboard, so I used only its scope check. No prose went out, so the writing pass was not needed.