Skip to content

Fix stale tile size after window resize#12

Merged
peterp merged 1 commit intomainfrom
fix-stale-tile-size-after-resize
May 1, 2026
Merged

Fix stale tile size after window resize#12
peterp merged 1 commit intomainfrom
fix-stale-tile-size-after-resize

Conversation

@peterp
Copy link
Copy Markdown
Owner

@peterp peterp commented May 1, 2026

Summary

  • reconcileTiles only handled added/removed windows. When a window was resized while the overlay was hidden, the kept tile retained its stale SCWindow, so layoutTiles rendered the wrong aspect ratio and the live stream kept capturing at the old dimensions.
  • Refresh kept tiles' scWindow from the fresh fetch, treat resize as a reconcile reason so the animated re-layout runs, and rebuild the capture pipeline for tiles whose size changed.

Test plan

  • Open a window, cmd+cmd, dismiss; resize the window; cmd+cmd → tile aspect ratio matches the new size.
  • With live previews enabled, the live stream resumes at the new dimensions (not letterboxed inside the old aspect).
  • No-op when nothing changed (no extra reconcile churn).

🤖 Generated with Claude Code

reconcileTiles only handled added/removed windows; if a window was resized
between prewarm and show, the kept tile retained its stale SCWindow with
the old frame, so layoutTiles produced the wrong aspect ratio and the live
stream's capture config stayed at the old dimensions.

Update kept tiles' scWindow from the fresh fetch, treat resize as a
reconcile reason so the animated re-layout runs, and rebuild the capture
pipeline for tiles whose size actually changed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@peterp peterp merged commit b56a33b into main May 1, 2026
1 check passed
@peterp peterp deleted the fix-stale-tile-size-after-resize branch May 1, 2026 14:22
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.

1 participant