Skip to content

mount.yazi: Incorrect password input and mount buffer losing focus #193

@heit0r

Description

@heit0r

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

kitty 0.43.1

yazi --debug output

❯ yazi --debug

Yazi
    Version: 26.1.22 (VERGEN_IDEMPOTENT_OUTPUT 2026-02-01)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.93.0 (254b5960 2026-01-19)

Ya
    Version: 26.1.22 (VERGEN_IDEMPOTENT_OUTPUT 2026-02-01)

Config
    Init             : /home/mojo/.config/yazi/init.lua (90 chars)
    Yazi             : /home/mojo/.config/yazi/yazi.toml (1174 chars)
    Keymap           : /home/mojo/.config/yazi/keymap.toml (1287 chars)
    Theme            : /home/mojo/.config/yazi/theme.toml (94 chars)
    VFS              : /home/mojo/.config/yazi/vfs.toml (No such file or directory (os error 2))
    Package          : /home/mojo/.config/yazi/package.toml (745 chars)
    Dark/light flavor: "tokyo-night" / ""

Emulator
    TERM                : Some("xterm-256color")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : None
    Emulator.detect     : Emulator { kind: Right(Unknown { kgp: false, sixel: false }), version: "VTE(8203)", light: false, csi_16t: (0, 0), force_16t: false }

Adapter
    Adapter.matches    : X11
    Dimension.available: Dimension { rows: 55, columns: 142, width: 0, height: 0 }

Desktop
    XDG_SESSION_TYPE           : Some("x11")
    WAYLAND_DISPLAY            : None
    DISPLAY                    : Some(":0.0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : Some("/usr/bin/zsh")
    EDITOR             : Some("/usr/bin/nano")
    VISUAL             : None
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None
    YAZI_ZOXIDE_OPTS   : None
    FZF_DEFAULT_OPTS   : None
    FZF_DEFAULT_COMMAND: None

Text Opener
    default     : Some(OpenerRule { run: "nvim %s", block: true, orphan: false, desc: "Neovim", for: None, spread: true })
    block-create: Some(OpenerRule { run: "nvim %s", block: true, orphan: false, desc: "Neovim", for: None, spread: true })
    block-rename: Some(OpenerRule { run: "nvim %s", block: true, orphan: false, desc: "Neovim", for: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : 2.9.8
    ffmpeg/ffprobe: 7.1.2 / 7.1.2
    pdftoppm      : 25.07.0
    magick        : 7.1.1-47
    fzf           : 0.67.0
    fd/fdfind     : 10.4.2 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : No such file or directory (os error 2)
    zoxide        : 0.9.8
    7zz/7z        : No such file or directory (os error 2) / 25.01
    resvg         : 0.47.0
    jq            : 1.8.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : 0.13
    xsel         : 1.2.1

Routine
    `file -bL --mime-type`: text/plain


See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.

Describe the bug

While trying to mount a hard disk, Yazi displays a incorrect sudo password message. Strangely, I have to hit Enter twice for the input to be captured. Maybe this is why I'm getting an error message. Other file browser works normally. I have udisks and util-linux installed.

Minimal reproducer

Open up kitty;
Open up yazi;
Type M;
Select a device;
Type m;
Password dialog pops up;
Type the requested password.

After the error message, the buffer loses focus and is impossible to enter on it again. Shift + M doesn't do anything after the error.

Anything else?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions