Skip to content

The resize script in vm-nogui breaks claude-code #447

@aldur

Description

@aldur

Hello there and thanks for this project! :)

I spent a couple hours debugging this issue the other day. I think the issue is that the resize script:

resize = pkgs.writeScriptBin "resize" ''
if [ -e /dev/tty ]; then
old=$(stty -g)
stty raw -echo min 0 time 5
printf '\033[18t' > /dev/tty
IFS=';t' read -r _ rows cols _ < /dev/tty
stty "$old"
stty cols "$cols" rows "$rows"
fi
''; # https://unix.stackexchange.com/questions/16578/resizable-serial-console-window

I think the issue is that the script runs for both interactive and non-interactive sessions. Also, it shouldn't need to run eg when through SSH, but it does because it is sourced in /etc/profile.

Metadata

Metadata

Assignees

No one assigned

    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