claude-code - 💡(How to fix) Fix [BUG] Zooming out past minimum pollutes undo history [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48354Fetched 2026-04-16 07:02:34
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×2closed ×1unlabeled ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

On Claude Desktop, when you zoom out past the minimum level, each extra zoom-out press gets recorded in the undo history despite having no visible effect. You then have to undo the same number of times before zoom actually starts increasing again.

What Should Happen?

Zoom actions at the minimum/maximum limit shouldn't be added to the undo stack. Undo should immediately start changing the zoom level.

Error Messages/Logs

Steps to Reproduce

  1. Press zoom-out (Cmd+- / Ctrl+-) until you hit the minimum zoom level
  2. Press zoom-out 5 more times
  3. Press undo (Cmd+Z / Ctrl+Z) — notice the first 5 presses do nothing visible
  4. Only after the 5th undo does zoom actually start increasing

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

N/A

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can likely be fixed by modifying the zoom functionality to prevent adding zoom actions to the undo history when the minimum or maximum zoom level is reached.

Guidance

  • Review the code responsible for handling zoom actions and undo history to identify where the unnecessary undo records are being added.
  • Consider adding a conditional check to prevent adding zoom actions to the undo history when the minimum or maximum zoom level is reached.
  • Verify that the undo functionality is correctly implemented and that it only undoes actual changes to the zoom level.
  • Investigate the zoom level limits and how they are enforced to ensure that they are correctly preventing further zoom actions when reached.

Example

No code snippet can be provided without more information about the implementation, but a possible approach could involve checking the current zoom level before adding a new undo action:

if current_zoom_level > min_zoom_level:
    # Add zoom action to undo history

Notes

The exact solution will depend on the specific implementation of the zoom functionality and undo history in Claude Code. Without more information about the code, it is difficult to provide a more detailed fix.

Recommendation

Apply a workaround by modifying the zoom functionality to prevent adding unnecessary undo records, as this will likely resolve the issue without requiring a version upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING