Skip to content

Feature/global checkpoints#3203

Merged
Kvadratni merged 7 commits intoblock:feature/global-checkpointsfrom
aharvard:feature/global-checkpoints
Jul 1, 2025
Merged

Feature/global checkpoints#3203
Kvadratni merged 7 commits intoblock:feature/global-checkpointsfrom
aharvard:feature/global-checkpoints

Conversation

@aharvard
Copy link
Copy Markdown
Collaborator

@aharvard aharvard commented Jul 1, 2025

Had some glitchy UI behavior when resizing the browser... the diff panel would flash on top of the chat thread when expanding or collapsing. This PR introduces a hook to manage race conditions and provides an abstraction for use in other areas down the road.

aharvard added 7 commits July 1, 2025 11:28
- Add intelligent tracking to prevent unnecessary window resizing
- Only resize window when canExpand is true and not already resized
- Track resize state to avoid unwanted size changes
- Reset tracking when window size changes externally
- Fixes issue where diff panel toggle caused unwanted resizing
- Replace hook's toggleWindow with direct window.electron.resizeWindow calls
- Track original width when first expanding for diff panel
- Only resize back if we actually expanded the window initially
- Eliminates unwanted resizing when user manually changes window size
- Provides more predictable and controlled window resize behavior
@aharvard aharvard marked this pull request as ready for review July 1, 2025 20:26
@Kvadratni Kvadratni merged commit 08d40a3 into block:feature/global-checkpoints Jul 1, 2025
1 check passed
Kvadratni pushed a commit that referenced this pull request Jul 2, 2025
Kvadratni pushed a commit that referenced this pull request Jul 2, 2025
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