perf(frontend): upgrade Next.js for faster Turbopack - #3949
Merged
Merged
Conversation
Enable Turbopack in the custom development server and stabilize its configuration dependencies. Co-authored-by: Codex <noreply@openai.com> Generated-by: gpt-5
Upgrade Next.js and React to 16.3.5 and 19.2.3, migrate lint and proxy configuration, and resolve React 19 type compatibility.\n\nCo-authored-by: Codex <noreply@openai.com>\nGenerated-by: gpt-5
Allow Next.js to handle its own HMR WebSocket upgrades without emitting a misleading proxy log.\n\nCo-authored-by: Codex <noreply@openai.com>\nGenerated-by: gpt-5
Replace deprecated modal, drawer, and alert props with their Ant Design 6 equivalents. Mount hidden memory forms before use and make memory configuration card spacing explicit. Co-authored-by: Codex <noreply@openai.com> Generated-by: gpt-5
Use Node 22 for the web image build and runtime stages so freshly resolved dependencies meet their engine requirements. Co-authored-by: Codex <noreply@openai.com> Generated-by: gpt-5
xuyaqist
requested review from
Dallas98,
WMC001,
YehongPan,
hhhhsc701 and
jeffwu-1999
as code owners
September 17, 2026 11:31
YehongPan
approved these changes
Sep 17, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
This is a multi-major-version frontend and runtime upgrade, and the repository’s required npm run check-all validation was not executed here.
Pull request overview
Upgrades the frontend to Next.js 16, React 19, and Ant Design 6 while enabling Turbopack and updating compatibility APIs.
Changes:
- Updated frontend dependencies, TypeScript, ESLint, Tailwind, and Docker Node.js versions.
- Migrated Next.js proxy/configuration and Ant Design component APIs.
- Adjusted React 19 typings and frontend layout/image handling.
File summaries
| File | Description |
|---|---|
frontend/types/memory.ts |
Updated React JSX return type. |
frontend/tsconfig.json |
Enabled automatic JSX runtime and Next dev types. |
frontend/tailwind.config.js |
Simplified Tailwind configuration. |
frontend/server.js |
Enabled Turbopack and configurable port handling. |
frontend/proxy.ts |
Migrated middleware export to Next.js proxy API. |
frontend/package.json |
Upgraded Next, React, Ant Design, and tooling. |
frontend/next.config.mjs |
Added Turbopack alias configuration. |
frontend/lib/empty-canvas.js |
Added optional canvas stub. |
frontend/hooks/mcpTools/useContainerPortAvailability.ts |
Updated React ref initialization. |
frontend/eslint.config.mjs |
Added flat ESLint configuration. |
frontend/components/memory/MemoryEmbeddingMonitor.tsx |
Migrated modal mask API. |
frontend/components/common/markdownRenderer.tsx |
Updated React 19 prop and JSX typing. |
frontend/components/common/Diagram.tsx |
Updated React ref typing. |
frontend/components/auth/loginModal.tsx |
Migrated Alert API. |
frontend/components/auth/DeleteAccountModal.tsx |
Migrated Alert API. |
frontend/app/[locale]/share/[shareId]/page.tsx |
Migrated Alert API. |
frontend/app/[locale]/resource-manage/components/UserManageComp.tsx |
Migrated Alert API. |
frontend/app/[locale]/resource-manage/components/resources/SuQuotaModal.tsx |
Migrated modal destruction API. |
frontend/app/[locale]/resource-manage/components/resources/PlatformQuotaPanel.tsx |
Migrated Alert API. |
frontend/app/[locale]/oauth/complete/page.tsx |
Migrated Alert API. |
frontend/app/[locale]/newchat/ui/markdown-text.tsx |
Normalized image source handling. |
frontend/app/[locale]/newchat/ui/authenticated-image.tsx |
Added safe image source normalization. |
frontend/app/[locale]/newchat/assistant-ui/conversation-knowledge-scope-modal.tsx |
Migrated Alert API. |
frontend/app/[locale]/models/components/modelConfig.tsx |
Migrated Alert API. |
frontend/app/[locale]/models/components/model/ModelOverrideModal.tsx |
Migrated modal destruction API. |
frontend/app/[locale]/models/components/model/ModelEditDialogV2.tsx |
Migrated modal destruction API. |
frontend/app/[locale]/models/components/model/ModelCapacityFields.tsx |
Migrated Alert API. |
frontend/app/[locale]/models/components/model/ModelAddDialogV2.tsx |
Migrated modal and Alert APIs. |
frontend/app/[locale]/memory/ProviderTestPanel.tsx |
Migrated Drawer and Alert APIs. |
frontend/app/[locale]/memory/ProviderConfigDialog.tsx |
Migrated Drawer sizing API. |
frontend/app/[locale]/memory/ProviderConfigCard.tsx |
Migrated Alert API. |
frontend/app/[locale]/memory/MemoryManager.tsx |
Updated layout and modal rendering behavior. |
frontend/app/[locale]/memory/memory.css |
Updated memory settings spacing. |
frontend/app/[locale]/memory/LongTermMemoryPanel.tsx |
Migrated modal mask API. |
frontend/app/[locale]/memory/DreamingConfigCards.tsx |
Adjusted layout spacing. |
frontend/app/[locale]/mcp-space/components/McpServiceDetailModal.tsx |
Migrated Alert API. |
frontend/app/[locale]/mcp-space/components/add/AddMcpServiceModal.tsx |
Migrated modal mask API. |
frontend/app/[locale]/market/components/MarketAgentDetailModal.tsx |
Migrated Alert API. |
frontend/app/[locale]/knowledges/components/knowledge/PersonalKnowledgeBaseCapacityBar.tsx |
Migrated Alert API. |
frontend/app/[locale]/knowledges/components/document/DocumentList.tsx |
Migrated modal destruction API. |
frontend/app/[locale]/evaluation/page.tsx |
Migrated Drawer mask APIs. |
frontend/app/[locale]/evaluation/[id]/page.tsx |
Migrated Alert API. |
frontend/app/[locale]/agents/components/agentConfig/SkillDetailModal.tsx |
Migrated modal mask API and Alert API. |
frontend/app/[locale]/agents/components/agentConfig/skill/SkillTagManagementModal.tsx |
Removed deprecated modal prop. |
frontend/app/[locale]/agents/components/agentConfig/skill/SkillConfigModal.tsx |
Migrated modal mask API. |
frontend/app/[locale]/agents/components/agentConfig/skill/SelectSkillsDialog.tsx |
Removed deprecated modal prop. |
frontend/app/[locale]/agents/components/agent-prompt.tsx |
Migrated modal destruction API. |
frontend/.eslintrc.json |
Removed legacy ESLint configuration. |
deploy/images/dockerfiles/web/Dockerfile |
Upgraded runtime and build images to Node 22. |
Review details
- Files reviewed: 49/49 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Uh oh!
There was an error while loading. Please reload this page.