Skip to content

⬆️ chore: upgrade desktop Electron to 41.3.0#14223

Merged
Innei merged 4 commits into
canaryfrom
chore/electron-41-3-0
Apr 27, 2026
Merged

⬆️ chore: upgrade desktop Electron to 41.3.0#14223
Innei merged 4 commits into
canaryfrom
chore/electron-41-3-0

Conversation

@Innei

@Innei Innei commented Apr 27, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

N/A

🔀 Description of Change

Upgrade the desktop app Electron dependency from 41.1.0 to 41.3.0, the latest stable Electron release checked during this change. This includes the 41.2.0 macOS menu logging fix that removed the repeated representedObject is not a WeakPtrToElectronMenuModelAsNSObject message when interacting with macOS menus.

This project intentionally does not use lock files, so no lockfile update is included.

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

Local verification from the PR branch:

pnpm install
cd apps/desktop && pnpm install
pnpm exec electron --version # v41.3.0
bun run type-check
bun run build:main

Also verified in the earlier local run that the desktop app reaches Application ready state completed and logs did not contain representedObject is not a WeakPtrToElectronMenuModelAsNSObject. Full native macOS menu/tray click automation was blocked by missing Assistive Access permission in this environment.

📸 Screenshots / Videos

N/A

📝 Additional Information

pnpm install reports existing baseline peer/deprecated warnings and an @upstash/qstash patch warning unrelated to this Electron version bump. bun run build:main completes with existing Rolldown/Vite warnings.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 27, 2026
@vercel

vercel Bot commented Apr 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Apr 27, 2026 1:01pm

Request Review

@dosubot dosubot Bot added dependencies Pull requests that update a dependency file electron Electron/Desktop app specific labels Apr 27, 2026
@codecov

codecov Bot commented Apr 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.03%. Comparing base (685b17e) to head (f2c383b).
⚠️ Report is 1 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #14223       +/-   ##
===========================================
+ Coverage   68.09%   86.03%   +17.94%     
===========================================
  Files        2266      620     -1646     
  Lines      194349    51663   -142686     
  Branches    20344     7941    -12403     
===========================================
- Hits       132338    44449    -87889     
+ Misses      61882     7084    -54798     
- Partials      129      130        +1     
Flag Coverage Δ
app ?
database 92.03% <ø> (ø)
packages/agent-runtime 79.93% <ø> (ø)
packages/context-engine 83.25% <ø> (ø)
packages/conversation-flow 92.40% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.89% <ø> (ø)
packages/model-runtime 84.29% <ø> (ø)
packages/prompts 68.17% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 88.36% <ø> (-0.06%) ⬇️
packages/web-crawler 88.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store ∅ <ø> (∅)
Services ∅ <ø> (∅)
Server ∅ <ø> (∅)
Libs ∅ <ø> (∅)
Utils 93.47% <ø> (+13.42%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 27, 2026
@Innei

Innei commented Apr 27, 2026

Copy link
Copy Markdown
Member Author

CI collect failure follow-up:

Root cause: with no lockfile, CI resolved antd@6.3.7 + @ant-design/icons@6.2.0. antd/lib/config-provider/index.js requires @ant-design/icons/lib/components/Context without an extension, while @ant-design/icons@6.2.0 package exports only allowed the ./lib/* pattern to resolve extension-included subpaths. Node therefore failed before test collection, which turned into the 219 failed suites.

Fix pushed to this PR: add a pnpm patch for @ant-design/icons@6.2.0 package exports so ./lib/components/* and ./es/components/* resolve to the actual .js files.

Local checks after the patch:

pnpm install --offline
NODE_ENV=test bunx vitest run --silent=passed-only src/components/AntdStaticMethods/index.test.tsx
NODE_ENV=test bunx vitest run --silent=passed-only src/utils/identifier.test.ts

Both targeted suites pass locally.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Apr 27, 2026
@Innei

Innei commented Apr 27, 2026

Copy link
Copy Markdown
Member Author

Update: verified the upstream @ant-design/icons 6.2.1 fix path.

  • Registry metadata for @ant-design/icons@6.2.1 includes the missing ./lib/components/* and ./es/components/* exports, so @ant-design/icons/lib/components/Context resolves.
  • Reproduced the same collect path locally by applying the 6.2.1 exports metadata and src/components/AntdStaticMethods/index.test.tsx passes.
  • Replaced the temporary pnpm patch with a direct dependency minimum bump: @ant-design/icons ^6.1.0 -> ^6.2.1.
  • PR diff is now only Electron upgrade + root icons version floor; no local ant-design patch file remains.

Validation run:

  • NODE_ENV=test bunx vitest run --silent='passed-only' src/components/AntdStaticMethods/index.test.tsx\n- NODE_ENV=test bunx vitest run --silent='passed-only' src/utils/identifier.test.ts

@github-actions

github-actions Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

🚀 Desktop App Build Completed!

Version: 0.0.0-nightly.pr14223.9580
Build Time: 2026-04-27T13:28:20.097Z

📦 Release Download · 📥 Actions Artifacts

Build Artifacts

Platform File Size
macOS (Apple Silicon) LobeHub-Nightly-0.0.0-nightly.pr14223.9580-arm64-mac.zip 146.57 MB
macOS (Apple Silicon) LobeHub-Nightly-0.0.0-nightly.pr14223.9580-arm64.dmg 139.54 MB
macOS (Intel) LobeHub-Nightly-0.0.0-nightly.pr14223.9580-mac.zip 155.18 MB
macOS (Intel) LobeHub-Nightly-0.0.0-nightly.pr14223.9580-x64.dmg 146.62 MB
Windows LobeHub-Nightly-0.0.0-nightly.pr14223.9580-setup.exe 133.90 MB
Linux LobeHub-Nightly-0.0.0-nightly.pr14223.9580.AppImage 164.11 MB

Warning

Note: This is a temporary build for testing purposes only.

@Innei Innei merged commit a4235d3 into canary Apr 27, 2026
42 of 44 checks passed
@Innei Innei deleted the chore/electron-41-3-0 branch April 27, 2026 13:54
mutoe pushed a commit to mutoe/lobehub that referenced this pull request May 1, 2026
* ⬆️ chore: upgrade desktop electron to 41.3.0

* 🐛 fix: patch ant design icons vitest resolution

* 🐛 fix: require fixed ant design icons version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file electron Electron/Desktop app specific size:XS This PR changes 0-9 lines, ignoring generated files. trigger:build-desktop Trigger Desktop build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant