Skip to content

[Bug]: dragging a visible tmux divider misses its terminal cell #37147

Closed

Description

@StiensWout

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. Open the web terminal in Chromium on Linux with the default 13px font.
  2. Attach a private tmux session, enable set -g mouse on, and split it into side-by-side panes.
  3. Size the terminal so its cell width is fractional. The original repro used two T3 terminal splits, a 437x279 canvas and a 54x15 tmux client, with the left tmux pane 27 columns wide.
  4. Drag the visible tmux divider. In that layout, press at canvas-relative x=218.5, y=139.5, then drag horizontally.

The automated reproduction is pnpm exec vp run scenarios scenarios/terminal-drags-tmux-pane-divider.e2e.ts from the accompanying fix branch. It finds the divider from actual canvas pixels and drives native mouse events through the real PTY.

Expected behavior

Dragging the rendered divider resizes the tmux panes.

Actual behavior

The press reports the cell to the left of the divider and the panes do not resize. The renderer uses fractional cell dimensions, but the mouse encoder receives rounded whole-pixel dimensions. Their coordinate grids disagree.

Impact

Minor bug or occasional failure

Version or commit

main @ f2c9449

Environment

Linux, Chromium web client. Original hunt and independent Claude Opus 5.5 verification used tmux 3.6; the fix's actual-app base/head scenario also reproduces with tmux 3.4 on boat.dev. No native desktop/mobile claim.

Screenshots, recordings, or supporting files

Hunt report

Workaround

An offset grab point can hit the divider's reported cell, but it does not match the visible divider.

Activity

  1. added
    vouch:trusted
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions