Skip to content

Update Electron to version 40.1.0#21537

Merged
sergiou87 merged 3 commits intodevelopmentfrom
bump-electron-v40
Feb 3, 2026
Merged

Update Electron to version 40.1.0#21537
sergiou87 merged 3 commits intodevelopmentfrom
bump-electron-v40

Conversation

@sergiou87
Copy link
Member

@sergiou87 sergiou87 commented Jan 30, 2026

Summary

This PR updates Electron from v38.2.0 to v40.1.0.
Node.js is also updated from v22.19.0 to v24.11.1.

Breaking Changes

Electron 39

  • Removed the --disable-color-correct-rendering command line switch
  • Removed deprecated BrowserWindow.setTrafficLightPosition() and BrowserWindow.getTrafficLightPosition() APIs (use trafficLightPosition property instead)
  • Changed webContents.navigationHistory to be a read-only property

Electron 40

  • Removed webContents.getPrinters() and webContents.print() (use Web Printing API instead)

References

Add AGENTS.md documenting a Copilot agent for upgrading Electron and the corresponding Node.js version in GitHub Desktop. Provides step-by-step guidance on which files to change (separating Electron and Node updates into two commits), verification steps (yarn install, yarn build:dev), PR title/description template, recommended commit messages, and important notes (e.g., do not change production in validate-electron-version.ts, .nvmrc uses a v prefix). Includes references for finding breaking changes and current reference versions.
@sergiou87 sergiou87 marked this pull request as ready for review January 30, 2026 16:09
@@ -0,0 +1,181 @@
# AGENTS.md - Copilot Agent Instructions
Copy link
Contributor

@tidy-dev tidy-dev Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I have made custom agents.. I have followed this Creating custom agents. and this Using GitHub Copilot CLI = custom agents and here is examples

Either way. This file should be at .github/agents/electron-upgrader.agent.md. I believe the top should have a meta day section like:

---
name: electron-upgrader
description: ...
---

Currently, this doesn't show up when you use /agent with Copilot CLI

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just asked VS Code's agent to create this agent, and then used it 😂 I think there are some mismatches between VS Code's agent and Copilot CLI when looking for agents, but I'll fix that in another PR. Thank you!!

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgrade appears to work as expected. ✨

The agent however doesn't show up in Copilot CLI and I think that is just a matter of location and meta data. I will approve in case you want to merge and followup with a PR to move to adjust the upgrader file.

@sergiou87 sergiou87 merged commit dfcada0 into development Feb 3, 2026
9 checks passed
@sergiou87 sergiou87 deleted the bump-electron-v40 branch February 3, 2026 09:40
@fisforfaheem
Copy link

please see if the person is using old git on thier pc or mac please ask user to udpate that as well also please add more AI stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants