René's URL Explorer Experiment


Title: fix(deps): revert next to 16.2.12, its 16.3.0 optimizer deletes live code by waleedlatif1 · Pull Request #6242 · simstudioai/sim · GitHub

Open Graph Title: fix(deps): revert next to 16.2.12, its 16.3.0 optimizer deletes live code by waleedlatif1 · Pull Request #6242 · simstudioai/sim

X Title: fix(deps): revert next to 16.2.12, its 16.3.0 optimizer deletes live code by waleedlatif1 · Pull Request #6242 · simstudioai/sim

Description: Summary Reverts next 16.3.0 -> 16.2.12 across the root overrides, @next/swc-* optional deps, apps/sim, apps/docs, and packages/emcn. Keeps the TypeScript toolchain cleanup from the original bump (@typescript/native-preview dropped, useTypeScriptCli pinned). 16.3.0's Turbopack optimizer treats a bare return () tail call inside an async function as returning the promise object, then carries that always-truthy fact through the caller's await. Where the result feeds an if (x) whose every branch returns, it decides the branch is always taken and deletes everything after it from the emitted bundle. Two sites shipped to production that way: POST /api/credentials lost the whole create path (transaction, org locks, insert, audit, 201). New credentials 500'd with TypeError: null is not an object (evaluating 'K.id') — this is the prod canary failure. upsertAsyncToolCall collapsed to async () => await getAsyncToolCall(id). The insert is gone; it returns null for every new async copilot tool call. Silent — no error, no failed request, no canary. Both sites also hardened with return await, which defeats the miscompile in a minimal reproduction. Scope Built the same commit on 16.2.12 and 16.3.0 and diffed 71,266 distinctive source string literals across .next/server and .next/static. Exactly two literals disappeared — the two above; the client bundle lost none. That scan cannot see dropped branches containing no distinctive string, which is why the version goes back rather than patching the two sites and calling it done. Type of Change Bug fix Testing Minimal Next app reproducing the shape: tail deleted on 16.3.0, present on 16.2.12, identical source. return await, dropping the wrapper, !== null, and hoisting to a nullable let each fix it. apps/sim/app/api/credentials/route.test.ts passes (6/6). Biome clean on the changed files. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Reverts next 16.3.0 -> 16.2.12 across the root overrides, @next/swc-* optional deps, apps/sim, apps/docs, and packages/emcn. Keeps the TypeScript toolchain cleanup from the original bum...

X Description: Summary Reverts next 16.3.0 -> 16.2.12 across the root overrides, @next/swc-* optional deps, apps/sim, apps/docs, and packages/emcn. Keeps the TypeScript toolchain cleanup from the original...

Opengraph URL: https://github.com/simstudioai/sim/pull/6242

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:968f2fcf-ada3-e608-ee0a-6d6847773806
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFF0:1AB6EE:CC570:11D873:6AFB468C
html-safe-nonce467e4392dc3fcc35ff6c75e5aefe2a052df616ee5a05b0dbaf794b745e94537a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkYwOjFBQjZFRTpDQzU3MDoxMUQ4NzM6NkFGQjQ2OEMiLCJ2aXNpdG9yX2lkIjoiNTQ5MDM3NzM2NzY3MjgwMDkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8311eb24e71b89b0f6db63d529f1d5714bf0129a38441789e58901500e3d491d
hovercard-subject-tagpull_request:4200394045
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6242/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Reverts next 16.3.0 -> 16.2.12 across the root overrides, @next/swc-* optional deps, apps/sim, apps/docs, and packages/emcn. Keeps the TypeScript toolchain cleanup from the original bum...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6242/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6242%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6242%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6242/files
Reloadhttps://github.com/simstudioai/sim/pull/6242/files
Reloadhttps://github.com/simstudioai/sim/pull/6242/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/revert-next-16-3-turbopack-dcehttps://github.com/simstudioai/sim/tree/fix/revert-next-16-3-turbopack-dce
Conversation 3 https://github.com/simstudioai/sim/pull/6242
Commits 1 https://github.com/simstudioai/sim/pull/6242/commits
Checks 30 https://github.com/simstudioai/sim/pull/6242/checks
Files changed https://github.com/simstudioai/sim/pull/6242/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6242/files
fix(deps): revert next to 16.2.12, its 16.3.0 optimizer deletes live code https://github.com/simstudioai/sim/pull/6242/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/6242/files
6de3c44 fix(deps): revert next to 16.2.12, its 16.3.0 optimizer deletes live … waleedlatif1 Aug 4, 2026 https://github.com/simstudioai/sim/pull/6242/commits/6de3c4472f1fbb05a11a73f1c683c1db74096188
Clear filters https://github.com/simstudioai/sim/pull/6242/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6242/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6242/files
package.json https://github.com/simstudioai/sim/pull/6242/files#diff-d03d2ce97fad5059ad6248fca5f5919994b09bca360f883318c03f1f817ae677
route.ts https://github.com/simstudioai/sim/pull/6242/files#diff-b71bb8ac13a5387f3571efaf0b51a0dcc84502b5cc62d0620cb7cfb4ff6a06c7
repository.ts https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
next.config.ts https://github.com/simstudioai/sim/pull/6242/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
package.json https://github.com/simstudioai/sim/pull/6242/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
bun.lock https://github.com/simstudioai/sim/pull/6242/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
package.json https://github.com/simstudioai/sim/pull/6242/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
package.json https://github.com/simstudioai/sim/pull/6242/files#diff-aab9627c3522cdfebb37f75ec72077cf17eb21a9043825f00123d317bf81d73d
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L36
apps/docs/package.jsonhttps://github.com/simstudioai/sim/pull/6242/files#diff-d03d2ce97fad5059ad6248fca5f5919994b09bca360f883318c03f1f817ae677
View file https://github.com/simstudioai/sim/blob/6de3c4472f1fbb05a11a73f1c683c1db74096188/apps/docs/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6242/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6242/files#diff-d03d2ce97fad5059ad6248fca5f5919994b09bca360f883318c03f1f817ae677
https://github.com/simstudioai/sim/pull/6242/files#diff-d03d2ce97fad5059ad6248fca5f5919994b09bca360f883318c03f1f817ae677
apps/sim/app/api/credentials/route.tshttps://github.com/simstudioai/sim/pull/6242/files#diff-b71bb8ac13a5387f3571efaf0b51a0dcc84502b5cc62d0620cb7cfb4ff6a06c7
View file https://github.com/simstudioai/sim/blob/6de3c4472f1fbb05a11a73f1c683c1db74096188/apps/sim/app/api/credentials/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6242/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6242/files#diff-b71bb8ac13a5387f3571efaf0b51a0dcc84502b5cc62d0620cb7cfb4ff6a06c7
https://github.com/simstudioai/sim/pull/6242/files#diff-b71bb8ac13a5387f3571efaf0b51a0dcc84502b5cc62d0620cb7cfb4ff6a06c7
apps/sim/lib/copilot/async-runs/repository.tshttps://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
View file https://github.com/simstudioai/sim/blob/6de3c4472f1fbb05a11a73f1c683c1db74096188/apps/sim/lib/copilot/async-runs/repository.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6242/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
https://github.com/simstudioai/sim/pull/6242/files#diff-4a565dc785c6c225203feb6a7de3e996ef7cc054cd0a2e7b7505552e3f6f9bda
apps/sim/next.config.tshttps://github.com/simstudioai/sim/pull/6242/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
View file https://github.com/simstudioai/sim/blob/6de3c4472f1fbb05a11a73f1c683c1db74096188/apps/sim/next.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6242/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6242/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
https://github.com/simstudioai/sim/pull/6242/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L36
apps/sim/package.jsonhttps://github.com/simstudioai/sim/pull/6242/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
View file https://github.com/simstudioai/sim/blob/6de3c4472f1fbb05a11a73f1c683c1db74096188/apps/sim/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6242/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6242/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
https://github.com/simstudioai/sim/pull/6242/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
Please reload this pagehttps://github.com/simstudioai/sim/pull/6242/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6242/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.