GeezerVison is showing github.com — fix(desktop): recover zoom from the upper limit by nateEc · Pull Request #4343 · pingdotgg/t3code
Conversation
nateEc
commented
Jul 23, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What Changed
- Replace Electron built-in zoom menu roles with explicit focused-window zoom handlers.
- Decrement the current zoom level directly, including when the upper limit has been reached.
- Keep the existing shortcuts and add focused menu regression coverage.
Why
On Linux and Windows, Electron could leave the built-in Zoom Out role ineffective after reaching maximum UI zoom. Reset still worked, but users could otherwise become stuck at an unusable scale.
Closes #4238
Checklist
- Focused desktop menu test passes
- Desktop typecheck passes
- Targeted lint and formatting pass
Note Low Risk
Localized desktop menu behavior with a regression test; no auth, data, or shared API surface changes.
Overview
Fixes Zoom Out becoming a no-op on Linux/Windows after UI zoom hits Electron’s built-in maximum, while Actual Size still worked.
The View menu no longer uses Electron resetZoom / zoomIn / zoomOut roles. Actual Size, Zoom In, and Zoom Out now call custom handlers that read and write webContents zoom on the focused main window via setApplicationZoom, including decrementing from a high level (e.g. 9 → 8). Shortcuts are unchanged (CmdOrCtrl+0, +=, -, hidden Plus).
Tests add an ElectronWindow stub and assert Zoom Out lowers the mocked zoom level after menu configure.
Reviewed by Cursor Bugbot for commit 9cec1f5. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix zoom recovery from upper limit by replacing role-based zoom menu items with custom handlers
- Replaces Electron's built-in role-based zoom menu items in the View menu with custom
click handlers that read and set webContents zoom level directly via the ElectronWindow service.
- Adds a
setApplicationZoom effect that applies a transform (increment, decrement, or reset) to the focused window's zoom level; if no window is focused, the action is a no-op.
- Behavioral Change: zoom controls no longer rely on Electron's default role behavior, so any role-specific side effects (e.g. native OS integration) are lost in favor of direct
webContents zoom control.
Macroscope summarized 9cec1f5.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Replace Electron zoom roles with explicit zoom-level handlers.
- Decrement the focused window zoom directly even when the maximum level was reached.
- Add focused menu coverage for zooming out from level nine.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: cccec623-aa17-4177-b1c8-89ed0d7cf989
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved
Straightforward bug fix replacing Electron's built-in zoom role handlers with custom implementations that properly track current zoom level. The change is limited in scope, has clear intent, and includes test coverage for the new behavior.
You can customize Macroscope's approvability policy. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing as superseded by #5691, which moved desktop zoom handling into DesktopWindow.zoomMain; merged #6649 further extends that current implementation. Thanks for the contribution.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|