Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Floating preview grows by itself and stays stuck mid-window after grabbing its corner to resize #22988

ClosedSKCarlsson(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. In a Claude Code thread, have the agent open a browser preview with preview_open (here http://localhost:4417/v5.html, a static page). It shows as the floating preview over the chat.
  2. Move the mouse to a corner of the floating preview and press to resize it.
  3. Release the mouse button.

Expected behavior

The corner resize follows the pointer and stops when the button is released. The preview keeps the size and place it was given.

Actual behavior

While grabbing the corner, the preview scaled up by itself. After the button was released it stayed stuck in the middle of the window, over the end of the conversation and next to the composer, and no longer followed the pointer or returned to its corner.

This looks like the interrupted-gesture case described in #16831 ("Interrupted gestures can also make later hover events move or resize the preview"; "Pointer release, cancellation, lost capture, blur, and missing-button events end gestures"). That PR was closed without merging on 2026-10-14, so the build below doesn't have its gesture handling.

Impact

Minor bug or occasional failure

Version or commit

T3 Code (Nightly) 0.1.1-nightly.20261019.3360

Environment

macOS 27.0 (MacBook Air), desktop app; Claude Code provider (Claude Opus 5.5); the thread details card was open on the right.

Logs or stack traces

No response

Screenshots, recordings, or supporting files

A screenshot of the stuck preview can be added on request.

Workaround

Closing the preview tab (the agent called t3_preview_close on it) removed the stuck preview.

  1. juliusmarminge added labelsneeds more info

  2. juliusmarminge removed labelsneeds more info

  3. tanstack-source added labelsbug

  4. juliusmarminge linked this to #22999

  5. Fixed by #36315, now on main: The floating preview now keeps its starting aspect ratio while a resize corner is held and stops resizing on release or interruption, so returning from another window and hovering without pressing no longer enlarges or moves it.

  6. juliusmarminge closed this

  7. This is the same problem as #36315, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  8. juliusmarminge closed this

Sign in to join this conversation.