You'll notice
Terminal cell pixel size is re-measured when the window regains focus and after pasting
What
Claude Code now re-asks the terminal for its cell size in pixels whenever the window regains focus, as long as something is still holding a fine-pointer reference, and also re-measures it after a paste. This keeps the cached cell-pixel dimensions from going stale.
Why
Cell size can change between focus events (for example if the terminal font or window size changed), so re-probing it keeps pointer-based interactions, like fine-pointer selection, accurately aligned with the terminal grid.