Skip to content

fix(ui): preserve zoom state on redraw#224

Merged
sudo-tee merged 3 commits intosudo-tee:mainfrom
disrupted:preserve-zoom-state
Feb 2, 2026
Merged

fix(ui): preserve zoom state on redraw#224
sudo-tee merged 3 commits intosudo-tee:mainfrom
disrupted:preserve-zoom-state

Conversation

@disrupted
Copy link
Contributor

When using the zoomed agent chat window (via :Opencode toggle_zoom), the window width would reset to normal after certain actions (like responding to permission prompts), but the internal zoom state (state.pre_zoom_width) remained set. This required calling toggle_zoom twice to get back to zoomed width. Now the zoom width is preserved across all UI actions unless the user actively toggles back to normal width.

@sudo-tee
Copy link
Owner

sudo-tee commented Feb 2, 2026

@disrupted
Thanks for the fix

This looks good to me

Once the merge conflict is fixed I will merge it

@sudo-tee sudo-tee merged commit cdc20c2 into sudo-tee:main Feb 2, 2026
5 checks passed
@disrupted disrupted deleted the preserve-zoom-state branch February 2, 2026 20:18
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.

2 participants