Skip to content

[Bug]: sharing a web terminal corrupts Vim input #37232

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 same thread terminal from separate writable web browser contexts connected to one server.
  2. Create a file containing alpha\n and open it with vim -Nu NONE -n -i NONE <file>.
  3. Type iHELLO, press Escape, enter :wq, and inspect the saved file.

Expected behavior

The file contains HELLOalpha\n, including when another viewer is attached.

Actual behavior

The file contains \nalpha\n. Each web renderer answers the live terminal queries; duplicated DECRPM ESC[?12;2$y input corrupts Vim interaction. A single viewer and closing the other viewer restore correct editing. Duplicated cursor-position reports alone were not the harmful input.

Impact

Major degradation or frequent failure

Version or commit

main @ d21d8d8

Environment

Linux web client, Chromium, Vim 9.1, a shared real PTY. Native clients, other platforms and applications were not tested.

Logs or stack traces

The real-client fixture saves \nalpha\n on main and HELLOalpha\n with reply arbitration. The terminal manager public behavior test also fails on main for duplicate mode-status replies.

Screenshots, recordings, or supporting files

Found by the Terminal Improvement Bug Hunt; independently confirmed by Claude Opus 5.5. Original investigation: https://x3o43vw81xv1.postplan.dev

Workaround

Keep a single writable web viewer attached to this terminal.

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