Skip to content

fix(terminal): keep input alive when the phone keyboard collapses the… - #1160

Open
vill-jiang wants to merge 1 commit into
agegr:mainfrom
vill-jiang:fix/terminal-keyboard-resize
Open

vill-jiang wants to merge 1 commit into
agegr:mainfrom
vill-jiang:fix/terminal-keyboard-resize

Conversation

@vill-jiang

@vill-jiang vill-jiang commented Oct 10, 2026 •

Copy link
Copy Markdown

Opening the soft keyboard on a phone shrinks --app-viewport-height, so xterm's fit can momentarily resize the terminal to one row. The resize API rejected rows < 2 with 400 "Invalid terminal command", and the writer's fail-closed rule then disabled input for good. Clamp rows to 2 on both the client and the route instead of rejecting.

Screenrecorder-2026-10-10-14-36-19-799.mp4

… panel

Opening the soft keyboard on a phone shrinks --app-viewport-height, so xterm's
fit can momentarily resize the terminal to one row. The resize API rejected
rows < 2 with 400 "Invalid terminal command", and the writer's fail-closed
rule then disabled input for good. Clamp rows to 2 on both the client and the
route instead of rejecting.
@vill-jiang

Copy link
Copy Markdown
Author

Retry CI/e2e

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant