Repository navigation
chore(web): upgrade next to 16.4.2 - #1108
Merged
Merged
Conversation
Next 16.1.6 loses server actions after a router "restore": when a history.replaceState (which Next turns into a restore) lands while a server action is in flight, the action is discarded but the queue keeps pointing at it, so the actions queued behind it never run. On the Prompts page that leaves the table spinning forever after a quick tab or range switch. Next 16.3.0 fixed it (runRemainingActions only advances when the settled action is still at the queue's head); 16.4.2 is the latest. eslint-config-next stays at 16.1.6: 16.4.2 brings eslint-plugin-react-hooks 7.1, whose React Compiler rules fail lint in 84 places, which is a change of its own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk this is ready for review: a one-package upgrade ( |
This was referenced Oct 16, 2026
gkhngyk
approved these changes
Oct 17, 2026
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.
Summary
Upgrades
nextfrom 16.1.6 to 16.4.2 (web/), to fix a Next.js bug that leaves the Prompts table spinning forever after a quick tab or range switch.The bug
history.replaceStateinto a router "restore" action. The Prompts page usesreplaceStateto keep its route in sync with the tab, view and range (PROMPT-001).runRemainingActionsadvances anyway. The actions queued behind it never run.runRemainingActions(actionQueue, settledAction, …)only advances while the settled action is still at the queue's head. 16.1.7 and 16.2.x don't have the fix; 16.4.2 islatest.What changes
web/package.json:next16.1.6 → 16.4.2, pinned as before.web/yarn.lock:next's own dependencies only:@next/envand@next/swc-*16.4.2;sharp0.35;postcss8.5;@swc/helpers.eslint-config-nextstays at 16.1.6.eslint-plugin-react-hooks7.1, whose React Compiler rules (set-state-in-effect,immutability,purity,refs) failyarn lintin 84 places across the app.proxy.tsandnext.config.tswork as they are.node:20-alpine) and CI (Node 20) meet 16.4.2's Node ≥20.9.Related issue
None. The stall shows on main, and it is the known limit in #1107.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn install, thenyarn dev(oryarn build && yarn start).Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are on main tooyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn test(851) andyarn buildpass, on Next.js 16.4.2 with Turbopack. The routes are the same as before.The stall, before and after, with demo data and a scripted switch from Query Fan-out back to Prompts:
With feat(prompts): move Topics into the Prompts area as its Topics tab #1107 on top, switching from its Topics tab to Prompts 0–700 ms after Topics opens loaded the table in 6 of 6 runs. On 16.1.6 this stalled at 25 ms and at 400 ms.
Smoke test on a production build: 17 dashboard pages and redirects load without errors. The console's only 404 is
/_vercel/insights/script.js, which a local build never has.yarn devstarts and serves the Prompts page.Merge order: this can merge on its own. Merging it before or with #1107 removes that PR's known limit.
🤖 Generated with Claude Code