Skip to content

Cursor drawn in the wrong place (TMUX + WSL + alacritty #1930

Closed

Description

@xhuw
Image

git bisect showed be that this commit is the culprit: b2f2c9a

Activity

  1. github-actions commented on Aug 14, 2025

    @github-actions
    Contributor

    👋 This issue might be a duplicate of existing issues. Please check:

    If none of these address your specific case, please let us know how this issue differs.

  2. xhuw commented on Aug 14, 2025

    @xhuw
    Author

    This is a new issue. It seems to be related to window size. Tried in windows terminal (no tmux) same issue

    20250814-0839-48.5521324.mp4
  3. marked Tmux formatting issues #1946 as a duplicate of this issue on Aug 15, 2025
  4. MilesNorton commented on Aug 15, 2025

    @MilesNorton
    Image

    I'm also noticing weird cursor placements. I'm using alacrity + tmux but and I'm on linux.

    In my case the cursor sits 1 character back and sometimes it goes 2 places back and just looks like I'm editing an existing character. Note: this only happens sometimes - I haven't figured how I get in this state.

    For reference in that image, If i were to type 'b' that would appear after the 't'

  5. markjaquith commented on Aug 19, 2025

    @markjaquith
    Contributor

    One thing that will cause the cursor position to be incorrect for me is if I do an @-file completion is really long and can't be displayed on one line. It'll start on a new line, then wrap around, and then my text input will be one character different (my cursor is one character behind where characters are appended).

    i.e. make it do this:

    Image
  6. mmirus commented on Aug 21, 2025

    @mmirus

    Ditto on the wrapping @-file completion causing the cursor to be off by one character. Ghostty on Linux; no multiplexer.

  7. bgaillard commented on Sep 14, 2025

    @bgaillard

    Hi, I also confirm the behavior described by @xhuw regarding vertical window sizing.

    I'm on Linux and have observed this issue in both XFCE4 Terminal and Alacritty with Zellij. Here are two animated GIFs demonstrating the problem.

    XFCE 4 Terminal

    Image

    Alacritty + Zellij

    Image

    As we can see, the issue is not too critical since it only appears on windows with a very reduced vertical size. However, this happens not so rarely when using a multiplexer and frequently performing splits. Hopefully, this information will help resolve the problem. Thank you for your work on opencode, which is truly very useful!

  8. quantonganh commented on Sep 20, 2025

    @quantonganh

    In my case the cursor sits 1 character back and sometimes it goes 2 places back and just looks like I'm editing an existing character. Note: this only happens sometimes - I haven't figured how I get in this state.

    One thing that will cause the cursor position to be incorrect for me is if I do an @-file completion is really long and can't be displayed on one line. It'll start on a new line, then wrap around, and then my text input will be one character different (my cursor is one character behind where characters are appended).

    To reproduce this issue, split your terminal vertically to make the width smaller. Then @ a long file name, so the prompt wraps onto two lines - the cursor will be off by one character:

    Image

    If you continue splitting until the prompt wraps onto three lines, the cursor will be off by two characters:

    Image
  9. mikebdotuk commented on Oct 11, 2025

    @mikebdotuk

    Also started experiencing this bug in a similar env. (Manjaro, ghostty, i3wm). Might be tangential, and I haven't reproduced yet, but code supernova started failing hard after the bug would kick in. In bussy python files with a lot of nested indentation every modification it was making would have an extra space character at the start of the line.

  10. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Contributor

    wait that sounds different than this issue, hm were lsp errors being reported back to the llm?

  11. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions