Skip to content

Revert "fix(tui): clamp bogus terminal dimensions (WSL 131072x1)" (#35657)#36096

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c04ad36e
May 31, 2026
Merged

Revert "fix(tui): clamp bogus terminal dimensions (WSL 131072x1)" (#35657)#36096
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c04ad36e

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Reverts PR #35657 (b1d34cf6) — the WSL dimension clamp broke live terminal resize.

Root cause: the fix redefined process.stdout.columns/rows as getter-only accessors. Node's tty.WriteStream resize path writes to those properties on SIGWINCH (_refreshSize assigns the new size); a getter-only descriptor blocks that write, so the stream can no longer update its own dimensions and the Ink renderer keeps reading stale/clamped values on resize.

Changes

Validation

  • tsc --noEmit on the worktree: 18 errors, all pre-existing in packages/hermes-ink/src/utils/execFileNoThrow.ts — identical count on clean main. Zero new errors from the revert; none in entry.tsx.

The original WSL 131072x1 bogus-dimension problem still needs a fix that clamps without breaking resize (e.g. clamp at the layout/read sites, not by freezing the stream descriptor) — leaving #35657's issue open for a follow-up.

Infographic

revert-35657-tui-resize

@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-c04ad36e vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 9535 on HEAD, 9535 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4948 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@teknium1 teknium1 merged commit cd8aa38 into main May 31, 2026
20 checks passed
@teknium1 teknium1 deleted the hermes/hermes-c04ad36e branch May 31, 2026 22:51
@alt-glitch alt-glitch added type/bug Something isn't working comp/tui Terminal UI (ui-tui/ + tui_gateway/) javascript Pull requests that update javascript code P2 Medium — degraded but workaround exists labels May 31, 2026

@mxnstrexgl mxnstrexgl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — automated review passed. No security, quality, or test coverage issues detected.

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

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) javascript Pull requests that update javascript code P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants