opencode-pty icon indicating copy to clipboard operation
opencode-pty copied to clipboard

[Bug/Feature?]: web ui does not propagate console width and height to pty

Open BananaAcid opened this issue 1 month ago • 0 comments

Description

Resizing browser window, does not inform the underlying terminal window of the new size. even resizing the window and reloading it will only change the optical size, but the underlying terminal does not get updated.

Why needed

I am testing TUI tools.

Reproduction Steps

Steps to reproduce the behavior:

Resize the browser window and have some code running that outputs its TTY width and height on resize event.

Expected Behavior

I expect the TTY to get the resize event and the correct sizes.

Actual Behavior

Currently it stays with 120 by something.

Environment

  • OS: Windows 11
  • OpenCode Version: opencode v2.0.26
  • Plugin Version: 0.4.0
  • Bun Version: 1.4.2
[Paste relevant log output here]

Additional Context

Add any other context about the problem here.

BananaAcid avatar Oct 12 '26 19:10 BananaAcid