33379 Commits

Author SHA1 Message Date
Sebastian "Sebbie" Silbermann ee6e79b179 v16.2.6 v16.2.6 2026-05-07 20:20:32 +02:00
Tim Neutkens afa053d9eb Turbopack: Match proxy matchers with webpack implementation (#93594)
## What?

Applies
https://github.com/vercel/next.js/commit/d166096c399c4fc4e09cd2d1bf26dca6579a855d
for canary and handles the Turbopack-side implementation for
`middleware-manifest.json` which is used for edge runtime middleware.ts

---------

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
2026-05-07 19:32:15 +02:00
Tim Neutkens 97a154e5bb Turbopack: Fix middleware matcher suffix (#93590)
## What?

The Turbopack path incorrectly included a double backslash instead of
one backslash in the regex matcher.
2026-05-07 19:32:04 +02:00
Sebastian "Sebbie" Silbermann 83899bc891 [backport] Disable build caches for production/staging/force-preview deploys (#93586)
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2026-05-07 16:24:02 +02:00
Sebastian "Sebbie" Silbermann 7b222b9095 [backport][test] Pin package manager to patch versions (#93595) 2026-05-07 15:32:13 +02:00
Sebastian "Sebbie" Silbermann a8dc24f1fe [backport] Turbopack: more strict vergen setup (#93587)
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2026-05-07 12:38:02 +02:00
Sebastian "Sebbie" Silbermann 766148f9cd v16.2.5 v16.2.5 2026-05-06 19:06:11 +02:00
Zack Tanner 0dd94836a8 fix: add explicit checks for RSC header (#83) (#98)
(cherry picked from commit 807e363b13cc9395aa74f75122d1d16b4a46dc1a)
2026-05-06 18:02:07 +02:00
Zack Tanner d166096c39 fix proxy matching for segment prefetch URLs (#89) (#96)
* fix: proxy should match segment prefetches for canonical urls

* include .rsc handling
2026-05-06 18:02:06 +02:00
Josh Story 9d50c0b719 Strip next-resume header from incoming requests (#92)
This header is used by proxies to perform a concatenating resume render for partial prerendering. It is never sent from the client so we can filter it out when running in a mode that does not have an intermediate proxy.
2026-05-06 18:02:06 +02:00
Zack Tanner df7ab5ad72 fix: skip internal param normalization in unsupported environments 2026-05-06 18:02:06 +02:00
Josh Story ed41d1d454 Move htmlescape to shared/lib (#91)
we have auditing that server files aren't included in client chunks but the new htmlescape usage in next/script is causing that validation to fail. This refactors the utility into lib/shared
2026-05-06 18:02:06 +02:00
JJ Kasper b4c6705c70 Ignore malformed CSP nonce headers 2026-05-06 18:02:06 +02:00
JJ Kasper 5b194ee2d4 router-server: guard upgrade proxy against absolute-url SSRF (#77)
* test: add rewrite request smuggling coverage

* router-server: guard upgrade proxy against absolute-url SSRF

* test: relax rewrite smuggling socket timeout

* router-server: preserve local websocket upgrades
2026-05-06 18:02:02 +02:00
JJ Kasper cb171d7494 Fix i18n middleware matching for default-locale data routes (#82)
* Fix i18n middleware matching for default-locale data routes

* unskip node middleware on deploy
2026-05-06 17:59:10 +02:00
Sebastian "Sebbie" Silbermann 89e995431a [16.x] Type hardening and performance improvements (#80) 2026-05-06 17:59:10 +02:00
Josh Story 66f6017f15 Escape properties for beforeInteractive scripts (#86)
props set on a next/script with beforeInteractive are serialized as JSON into an inline script to be exectuted prior to hydration by Next.js. The props were not additionally escaped and if user input was rendered as through a script it could allow fro XSS. This has alwways been true if you pass user input into the script body or via dangerouslySetInnHTML however and it is always the developers responsibility to sanitize user input before rendering. However wherever React has some automatic escaping to act as an additional defense against common mistakes leading to vulnerabilities like XSS Next.js should mirror that becasue from the user's perspective it is not clear that React is not directly rendering the script props and content.

This change adds additional escaping so that serialized properties cannot break out of the script scope and execute unexpected payloads.
2026-05-06 17:59:10 +02:00
Hendrik Liebau 3d98505a24 [backport] fix: preserve HTTP access fallbacks during prerender recovery (#93470)
Backports:

- #92231

---------

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
Co-authored-by: Andrew Clark <git@andrewclark.io>
2026-05-06 14:49:29 +02:00
Hendrik Liebau bb5ada6e38 [backport] [test] Deflake instant-navs-devtools (#93534)
Backports:

- #91912
- #93365

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <sebastian.silbermann@vercel.com>
2026-05-06 14:07:02 +02:00
Hendrik Liebau f1c11203d5 [backport] Fix double-encoding of URL pathname parts in client param parsing (#93506)
Backports:

- #93491
2026-05-06 11:51:44 +02:00
Hendrik Liebau 2d08397b3d [backport] fix accidental test duplication (#93507) 2026-05-05 23:54:20 +02:00
Josh Story 75d19ecbb3 [backport] Include deployment id in cacheHandlers keys (#93471)
Backport #93453 to 16.2

How was this ever working for dev? In that case, `buildId =
"development"` and so it always uses the same cache key

Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
2026-05-05 14:54:04 -07:00
Benjamin Woodruff 7ab1e2e93d CI: Download and run self-contained datadog-ci instead of using pnpm dlx or npx (#92546)
`pnpm dlx` isn't using a lockfile. Using the self-contained binary from
GitHub and validate the checksum lets us effectively pin `datadog-ci`
and all of its possible transitive dependencies.

This is a follow-up for
https://vercel.slack.com/archives/C0APPN2LC83/p1775073127894859

(cherry picked from commit 631fae951d)
2026-04-27 15:57:18 -07:00
Zack Tanner 084f2bcf19 [ci]: trigger signed release commit via API (#93285)
Stacked on https://github.com/vercel/next.js/pull/93245

Commit signing is required for anything that lands on `canary`. Our
previous workflow of using a PAT to push a commit no longer works, since
that would have been an unsigned commit.

In #93245 we switched to an app token for release workflow steps. This
continues by:

- Telling Lerna to bump packages but not commit
- Creating a signed commit with the staged changes via GitHub's API
- Then running the publish flow

Test Plan:
Dry run
[here](https://github.com/vercel/next.js/actions/runs/25001287978/job/73211826479)
Commit
[here](https://github.com/vercel/next.js/commit/3a8456a62b56615e2f8c1d1e6e7b4e14ce89e078)

(cherry picked from commit 012fd7df4b)
2026-04-27 14:48:10 -07:00
Zack Tanner a3bb370b00 [ci]: app-based release workflow (#93245)
Moves all release workflows off of a GH PAT and uses an app with a
short-lived token instead.

Test Plan:
Dry run
[here](https://github.com/vercel/next.js/actions/runs/24934593874).

However, this workflow is blocked until we figure out commit signing for
the bot app. Some options:
- The bot account generates a signing key and we use it in CI (not
great, bypasses the app)
- The org bypasses signature verification for the bot user (also not
great, requires an exemption rule)
- We need to rework the commit step so Lerna does not do the push, and
instead trigger it via the app + GH API. This seems like the best
option, will be added in a follow-up PR.

Note: `create-release-branch` workflow is broken in its current form, as
we will not be restoring administrator privileges to adjust environment
settings. This will become a manual step in the future.

(cherry picked from commit e69de2ffaf)
2026-04-27 14:48:05 -07:00
Zack Tanner 6e23383c56 [ci]: add environment to publishRelease flow (#93093)
Moves the `environment` into `publishRelease` rather than
`trigger_release` since the actual action we want to create environment
rules for is the publish step.

(cherry picked from commit 2b846de4c5)
2026-04-27 14:47:40 -07:00
Zack Tanner f40b8876e6 [ci]: remove publish token in favor of OIDC (#93065)
Switches from a long-lived token to trusted publishing OIDC flow. This requires a bump to Node (for feature support). Otherwise just dropping unnecessary envs.

(cherry picked from commit 129896c2e4)
2026-04-27 14:47:03 -07:00
JJ Kasper f6bda26ef9 Fix fallback route params case in app-page handler (#93109)
## Summary
- backport the fallback route params fix from #91737 onto `next-16-2`
- preserve intermediate shells that suspend only for unresolved fallback
params during staged rendering
- add the missing `resolvedRouteParamKeys` request metadata needed by
this branch
2026-04-27 12:28:09 -07:00
Zack Tanner 70defda2a8 [ci]: switch to GitHub runners (#93164)
Switch CI from self-hosted runners to GitHub-hosted runners and fix the
follow-up issues that showed up once the hosted jobs were exercised.

- Move Linux workflows onto `ubuntu-latest-16-core-oss`, Windows
workflows onto `windows-latest-8-core-oss`, and the native mac release
lane onto `macos-15-intel`.
- Update the reusable build workflow to work in hosted environments by
relying on `runner.os` instead of label string matching, and by removing
the hardcoded `/home/runner` `fnm` path.
- Make Turbo/sccache configuration explicit for hosted runners:
  - unify on `vtest314-next-adapter-e2e-tests`
- pass `TURBO_TOKEN` via workflow env/secrets instead of assuming
runner-level env
- switch Turbo cache mode to `local:rw,remote:rw` so jobs still have
local cache behavior when remote cache is unavailable
- Update the `sccache` action defaults/docs to use the hosted-runner
secret setup (`TURBO_TOKEN`) instead of the old self-hosted token
wiring.
- Make Datadog reporting fail open so missing `DATA_DOG_API_KEY` does
not block CI.
- Fix the CLI reserved-port test so it asserts Next’s own `-p 1`
validation instead of failing earlier on hosted Linux due to
privileged-port binding.
- Replace the live `musl.cc` dependency in `native-builder.Dockerfile`
with musl sysroots imported from GHCR-hosted `rust-musl-cross` images,
keeping the existing `/opt/*-cross` layout used by the Linux native
build scripts.
- Fix the macOS native build workaround s so it applies to all
*-apple-darwin targets based on the Cargo target OS rather than the host
architecture, which avoids napi-build injecting the unsupported -Wl
linker arg when @next/swc is linked with rust-lld on hosted mac runners.

Test Plan:
- This PR's CI
- This
[build_and_deploy](https://github.com/vercel/next.js/actions/runs/24865715983/job/72801225722)
job running on every arch
2026-04-24 12:14:05 -07:00
Zack Tanner af0e96ba23 Fix invalid HTML response for route-level RSC requests in deployment adapter (#91541)
In a deployed environment, `onCacheEntryV2` determines whether a
postponed response is HTML-origin or RSC-origin by checking whether
meta.url ends with `.rsc`.

For some dynamic full-route RSC requests, Next was passing a URL with
query params into onCacheEntry, for example:
`/[tenant]/samples.rsc?nxtPtenant=tenant-x`

Because that string does not end with .rsc, `onCacheEntryV2`
misclassified the request as HTML and treated it as text/html instead of
an RSC response.

This PR normalizes the URL before passing it to `onCacheEntry`, so the
callback receives the pathname rather than the full URL-with-query.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2026-04-24 06:18:16 -07:00
Zack Tanner 2cdb7ed34f [tests]: fix cache-components.test.ts type error (#93113)
Fixes a type error on canary after merging two PRs that touched the same
test.
2026-04-21 18:29:42 -07:00
JJ Kasper 8cd3fdc111 test: scope css data-url typing to fixture (#91877)
In the latest TypeScript version these imports now fail so updating the
assertion to handle them

x-ref:
https://github.com/vercel/next.js/actions/runs/23508766037/job/68431989897#step:35:443
2026-04-21 18:28:36 -07:00
JJ Kasper 6fd09bf8ab Patch setHeader for direct route handlers (#93101)
## Summary
- apply the `setHeader` cookie-support patch to direct route module
handlers in `prepare()`
- make `patchSetHeaderWithCookieSupport()` idempotent so both entry
paths can call it safely
- add an adapter-like direct RSC regression test that fails without the
patch

Closes: NEXT-4919

## Testing
- `NEXT_SKIP_ISOLATE=1 NEXT_TEST_MODE=start pnpm testheadless
test/e2e/app-dir/cache-components/cache-components.test.ts -t "should
ignore late setHeader calls for direct RSC handlers after headers are
sent"`

<!-- NEXT_JS_LLM_PR -->
2026-04-21 16:46:27 -07:00
Zack Tanner 688ed31e21 Strengthen _rsc cache-busting param (#92755)
This updates `_rsc` cache-busting param generation to use a stronger
digest so different RSC request variants are much less likely to produce
the same value.

It also updates the related request-validation and injected
resume/instant-test paths so they continue to generate and validate the
same `_rsc` values across client, server, and edge-reachable codepaths.
2026-04-21 16:46:26 -07:00
Steven 62ef305096 fix(next/image): ensure images.maximumResponseBody applies to local images too (#92920)
In a previous PR https://github.com/vercel/next.js/pull/88183, we added
`images.maximumResponseBody` but in only applied to external images.

This PR ensures the same config also applies to internal images.
2026-04-21 16:46:21 -07:00
JJ Kasper 15341fdf49 Ensure x-nextjs-data header is only set during resolve (#92752)
Makes sure we set this header during route resolving so user request
doesn't need to.
2026-04-21 13:53:59 -07:00
nextjs-bot 2275bd8598 v16.2.4 v16.2.4 2026-04-15 22:17:07 +00:00
Andrew Imm e07398321a Adding more system info to the 'initialize project' trace (#92427) 2026-04-15 19:48:53 +02:00
Tobias Koppers 8a540b58b6 Turbopack: shorter error message for ModuleBatchesGraph::get_entry_index (#92828)
### What?

In `ModuleBatchesGraph::get_entry_index`, when an entry module is not
found in the graph, the error message included the full list of all
possible entries (with their resolved string identifiers). This is an
expensive operation that requires async resolution of every entry's
`ident().to_string()`.

### Why?

In production builds, this verbose error output is unnecessary overhead
and produces very long error messages that are hard to read. The list of
possible entries is only useful during development/debugging.

### How?

Gate the expensive "possible entries" diagnostic behind
`cfg!(debug_assertions)`. In release builds, a short `bail!("Entry is
not in graph")` is used instead. In debug builds, the full diagnostic
with all possible entry identifiers is still shown to aid debugging.

This mirrors the same approach already applied to
`ChunkGroupInfo::get_index_of`.

<!-- NEXT_JS_LLM_PR -->
2026-04-15 17:21:41 +02:00
Niklas Mischkulnig 2f5343fafb Turbopack: shorter error for ChunkGroupInfo::get_index_of (#92814) 2026-04-15 15:55:06 +02:00
Tobias Koppers 2ad9d3fb58 turbo-tasks: Fix recomputation loop by allowing cell cleanup on error during recomputation (#92725)
### What?

Fix an infinite recomputation loop in turbo-tasks by allowing cell
cleanup to proceed during recomputation even when the task result is an
error.

### Why?

When a task errors during normal execution, cell cleanup is
intentionally skipped. The rationale is that errors during normal
execution are often transient eventual-consistency issues caused by
reading stale inputs — keeping old cell data prevents "cell no longer
exists" errors for dependent tasks that are reading those cells.

However, during **recomputation** (a task re-executing without being
marked dirty), nothing about its inputs has changed. Any error it
produces is therefore not transient. If cell cleanup is skipped in this
case, stale cells remain in place, which trigger further recomputations,
which produce further errors, which skip further cleanups — creating an
infinite loop.

### How?

- Detect whether a task execution is a recomputation by checking
`task.is_dirty().is_none()` at completion time (a recomputing task was
not dirty when it started executing).
- Propagate `is_recomputation` through
`TaskExecutionCompletePrepareResult` to both
`task_execution_completed_prepare` and
`task_execution_completed_cleanup`.
- In both places where cell cleanup is gated on `result.is_ok()` /
`!is_error`, extend the condition to also allow cleanup when
`is_recomputation` is true.

This ensures that stale cells produced by a erroring recomputation are
cleaned up, breaking the infinite loop.

<!-- NEXT_JS_LLM_PR -->

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 17:32:22 -07:00
Andrew Imm 6f3808e204 Compiler: Support boolean and number primtives in next.config defines (#92731)
Expand `config.compiler.define` to support number and boolean primitives
as well.

The support is already in Turbopack's rewrite engine, as well as
Webpack's DefinePlugin. We just need to modify the zod schema to
actually support passing numbers and bools.

Added an E2E test that should check all supported types.
2026-04-14 17:32:17 -07:00
Luke Sandberg fbc7684ecb Scope Safari ?ts= cache-buster to CSS/font assets only (Pages Router) (#92580)
### What?

Refactors the Safari `?ts=` cache-busting workaround in the Pages Router so it **only appears on CSS and font URLs**, not on script tags or script preload links.

### Why?

The `?ts=` timestamp was originally added to all preloaded assets as a workaround for a [Safari caching bug](https://bugs.webkit.org/show_bug.cgi?id=187726) (see [#5860](https://github.com/vercel/next.js/issues/5860)). When it appears on `<script>` tags, the Turbopack runtime's `getAssetSuffixFromScriptSrc()` reads the executing script's query string and infers it as the `ASSET_SUFFIX`, which then leaks onto all static asset URLs — including images. This causes `next/image` validation errors because the image URL gets an unexpected `?ts=` parameter.

Fixes #92118

### How?

Instead of maintaining parallel `assetQueryString` (with `?ts=`) and `scriptAssetQueryString` (without `?ts=`) paths, this PR:

1. **`assetQueryString`** carries only the deployment token (`?dpl=...`) and is used for all script-related URLs (script tags, script preloads)
2. **`safariCacheBuster`** is a new, separate field (`?ts=<timestamp>` or `""`) that is only combined with `assetQueryString` at the 3 CSS/font URL sites via a `joinQueryStrings()` helper
3. Removes the `scriptAssetQueryString` / `scriptMutableAssetQueryString` / `cssAssetQueryString` fields entirely

The Safari cache-buster is computed the same way as before (dev server only, Safari user-agent check) — it just no longer contaminates the base query string.

### Test plan

- [x] Updated existing test in `test/e2e/app-document/rendering.test.ts` to assert `?ts=` appears only on `<link rel="preload" as="style">` and `<link rel="preload" as="font">`, and does NOT appear on `<script>` or `<link rel="preload" as="script">`
- [x] `pnpm --filter=next types` passes

<!-- NEXT_JS_LLM_PR -->
2026-04-14 16:55:19 -07:00
Luke Sandberg 805d758d93 Turbopack: fix filesystem watcher config not applying follow_symlinks(false) (#92631)
## Summary

- The notify `Config` uses a builder pattern where `with_follow_symlinks()` consumes `self` and returns a new `Config`, but the return value was being discarded — so `follow_symlinks` remained at its default (`true`).
- The `RecommendedWatcher` branch was also passing `Config::default()` instead of the configured `config` object, ignoring the config entirely.

## Test plan

- [x] `cargo check -p turbo-tasks-fs` passes
- Behavioral: symlinks under the watched root will now trigger events for the symlink itself rather than the target, matching the intent of the existing comment.

<!-- NEXT_JS_LLM_PR -->
2026-04-13 13:09:27 -07:00
Evan Yu 1056fae356 chore: Bump reqwest to 0.13.2 (#92713)
Fixes #91653

Running `next dev` with the latest Turbopack fails to fetch fonts on
Windows ARM machines, resulting in an `http2 feature is not enabled`
error. This issue was fixed in `reqwest` v0.13.2:
https://github.com/seanmonstar/reqwest/pull/2927
2026-04-13 13:06:49 -07:00
nextjs-bot d5f649b2f4 v16.2.3 v16.2.3 2026-04-08 18:24:27 +00:00
Sebastian "Sebbie" Silbermann 28739286a8 [16.x] Avoid consuming cyclic models multiple times (#75)
* Avoid consuming cyclic models multiple times

* make types-and-precompiled work
2026-04-08 11:18:58 -07:00
Zack Tanner d7c7765360 [backport]: Ensure app-page reports stale ISR revalidation errors via onRequestError (#92282) (#92519)
Backports:
- #92282
2026-04-08 08:08:57 -07:00
Will Binns-Smith c573e8c4f3 fix(server-hmr): metadata routes overwrite page runtime HMR handler (#92273)
### What?

Fix server HMR becoming unresponsive after a metadata route is loaded in
the same Node.js process as an app page.

### Why?

Turbopack loads separate runtime chunks for app pages and metadata
routes (`robots.ts`, `sitemap.ts`, `manifest.ts`, `icon.tsx`, etc.) in
the same Node.js process. Each runtime chunk embeds `dev-nodejs.ts` and
produces a distinct `__turbopack_server_hmr_apply__` closure bound to
its own `moduleFactories` and `devModuleCache`.

Previously each runtime simply overwrote
`globalThis.__turbopack_server_hmr_apply__`, so the last chunk to load
silently won. Navigating to `/robots.txt` before an HMR update caused
the metadata route runtime to overwrite the page runtime's handler.
Subsequent HMR updates were dispatched only to the metadata route
runtime, which has no knowledge of the page module — the page appeared
frozen and stopped reflecting file changes.

### How?

Replace the bare assignment with a multicast registry:

1. Each runtime appends its own `__turbopack_server_hmr_apply__` handler
to `globalThis.__turbopack_server_hmr_handlers__[]`.
2. The first runtime to register installs a shared dispatcher as
`globalThis.__turbopack_server_hmr_apply__` that iterates all registered
handlers at call time (not install time), so newly loaded runtimes are
always included.
3. On full cache reset, `hot-reloader-turbopack.ts` resets
`__turbopack_server_hmr_handlers__` to `[]` so stale handlers from
evicted chunks don't accumulate into the next generation.

Because `dev-nodejs.ts` is embedded into the Turbopack binary via
`include_dir!`, this fix requires rebuilding the native binary.

### Tests

`test/development/app-dir/server-hmr/server-hmr.test.ts` — extended with
`metadata route hmr` tests that load a metadata route before patching a
page file, verifying HMR updates still reach the page runtime after a
second runtime chunk is loaded.

---------

Co-authored-by: Will Binns-Smith <wbinnssmith@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-04-07 16:34:28 -07:00
Tobias Koppers 57b8f65906 next-core: deduplicate output assets and detect content conflicts on emit (#92292)
Adds deduplication and conflict detection to the asset emission stage in
`crates/next-core/src/emit.rs`, and a new `IssueStage::Emit` variant in
`turbopack-core`.

Before emitting, assets are grouped by their output path. If multiple
assets map to the same path:

- If their content is identical, one is silently chosen (deduplication).
- If their content differs, both versions are written to
`<node_root>/<content_hash>.<ext>` and an `EmitConflictIssue` is raised
for each conflict. All assets are still emitted — conflicts do not abort
the build.

Previously, duplicate output assets for the same path were emitted
unconditionally — whichever write happened last silently won. This
masked build graph bugs where two different modules produced conflicting
output files. Reporting conflicts as issues (rather than silently
overwriting) makes them visible and easy to diagnose without breaking
the build.

- Collect all assets with their resolved paths via `try_flat_join`.
- Bucket them into two `FxIndexMap<FileSystemPath,
Vec<ResolvedVc<Box<dyn OutputAsset>>>>` — one for node-root assets and
one for client assets.
- For each bucket entry, call `check_duplicates`: compare every asset
against the first using `assets_diff`. If content differs, emit an
`EmitConflictIssue` as a turbo-tasks collectible — but still return the
first asset so emission continues.
- `assets_diff` is a `#[turbo_tasks::function]` that takes only
`(asset1, asset2, extension, node_root)` — the `asset_path` stays out of
the task key to avoid unnecessary task cardinality. When file content
differs, it hashes each version with xxh3, writes them to
`<node_root>/<hash>.<ext>`, and returns the paths in the detail message
so the user can diff them.
- `EmitConflictIssue` implements the `Issue` trait with
`IssueStage::Emit` (new variant added to `turbopack-core`),
`IssueSeverity::Error`, a descriptive title, and a detail message
explaining the type of conflict.
- Node-root and client assets are emitted in parallel via
`futures::join!` (not `try_join!`) to ensure deterministic error
reporting — both branches always run to completion so errors are
reported in a consistent order.

---------

Co-authored-by: Tobias Koppers <sokra@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-04-07 14:10:54 -07:00