Windows Multiple Display Issue #291

Open
opened 2026-02-16 17:26:05 -05:00 by yindo · 5 comments
Owner

Originally created by @QDaed on GitHub (Jun 25, 2025).

Originally assigned to: @thdxr on GitHub.

Windows Build
1.Unable to scroll in sessions
2.When scroll down with active session the text got stack together like visual bug
3.Unable to copy text when using opencode

Originally created by @QDaed on GitHub (Jun 25, 2025). Originally assigned to: @thdxr on GitHub. Windows Build 1.Unable to scroll in sessions 2.When scroll down with active session the text got stack together like visual bug 3.Unable to copy text when using opencode
yindo added the windows label 2026-02-16 17:26:05 -05:00
Author
Owner

@QDaed commented on GitHub (Jun 26, 2025):

Image
PoC
Unable to scroll and the text is stack together when output

@QDaed commented on GitHub (Jun 26, 2025): ![Image](https://github.com/user-attachments/assets/7dd4df12-52c4-43e2-b3c4-c5ba41baf1c0) PoC Unable to scroll and the text is stack together when output
Author
Owner

@SQLek commented on GitHub (Jun 26, 2025):

I can confirm with 0.1.143 from releases.

-- edit --
If problem is on Go side 224 line of tui.go is a good place to start debugging.
https://github.com/sst/opencode/blob/dev/packages/tui/internal/tui/tui.go#L224

-- edit --
bun run .\packages\opencode\src\index.ts
https://github.com/oven-sh/bun/issues/20675

Maybe transplant bun compiled files from WSL... maybe tomorrow.
Now main/stable branch is broken on windows platform.

@SQLek commented on GitHub (Jun 26, 2025): I can confirm with 0.1.143 from releases. -- edit -- If problem is on Go side 224 line of tui.go is a good place to start debugging. https://github.com/sst/opencode/blob/dev/packages/tui/internal/tui/tui.go#L224 -- edit -- `bun run .\packages\opencode\src\index.ts` https://github.com/oven-sh/bun/issues/20675 Maybe transplant bun compiled files from WSL... maybe tomorrow. Now main/stable branch is broken on windows platform.
Author
Owner

@SQLek commented on GitHub (Jun 27, 2025):

I was unable to localize compiled bun/ts files to transplant wsl=>windows,
so I transplanting whole cross compiled binary with debug enabled.

GOOS=windows GOARCH=amd64 go build -gcflags="all=-N -l" -o opencode.exe ./cmd/opencode/

And no luck. I'm still missing some shaman knowledge how to run opencode without JS components.

Bun still broken, Downgraded version to 1.2.14, still panics.

Last hope to run bun in wsl and connect to it from host. After that I'm giving up.

-- edit --
To run just Tui:

  1. Modify index.ts in wsl, 0.0.0.0 and port of Your choosing.
  2. Capture envs OPENCODE_SERVER and OPENCODE_APP_INFO
  3. Add \\wsl$\<distro-name> to paths in APP_INFO.
  4. Run ./packages/tui/cmd/opencode with injected envs.

So far we know:

  • Scroll-up work better but can miss a line when redrawing
  • Scroll-down redraws only few bottom lines
  • After resize repaint is correct, but view port is called with SetContent only containing currently visible area. (my bad, red hering) Kinda strange and worth investigating.

-- edit --
I'm able to reproduce scrolling glitches using bubbles/viewport example from bubbletea documentation.
Further investigation tomorrow.

@SQLek commented on GitHub (Jun 27, 2025): I was unable to localize compiled bun/ts files to transplant wsl=>windows, so I transplanting whole cross compiled binary with debug enabled. > GOOS=windows GOARCH=amd64 go build -gcflags="all=-N -l" -o opencode.exe ./cmd/opencode/ And no luck. I'm still missing some shaman knowledge how to run opencode without JS components. Bun still broken, Downgraded version to 1.2.14, still panics. Last hope to run bun in wsl and connect to it from host. After that I'm giving up. -- edit -- To run just Tui: 1. Modify index.ts in wsl, 0.0.0.0 and port of Your choosing. 2. Capture envs `OPENCODE_SERVER` and `OPENCODE_APP_INFO` 3. Add `\\wsl$\<distro-name>` to paths in APP_INFO. 4. Run ./packages/tui/cmd/opencode with injected envs. So far we know: - Scroll-up work better but can miss a line when redrawing - Scroll-down redraws only few bottom lines - After resize repaint is correct, ~~but view port is called with SetContent only containing currently visible area.~~ (my bad, red hering) Kinda strange and worth investigating. -- edit -- I'm able to reproduce scrolling glitches using bubbles/viewport example from bubbletea documentation. Further investigation tomorrow.
Author
Owner

@QDaed commented on GitHub (Jun 27, 2025):

At the moment this scroll issue and display text make windows unusable , https://github.com/sst/opencode/pull/486 this pull exactly solve the problem with fixing the overlay while rendering

@QDaed commented on GitHub (Jun 27, 2025): At the moment this scroll issue and display text make windows unusable , https://github.com/sst/opencode/pull/486 this pull exactly solve the problem with fixing the overlay while rendering
Author
Owner

@Hona commented on GitHub (Jan 5, 2026):

@QDaed is this still an issue? its good for me now

@Hona commented on GitHub (Jan 5, 2026): @QDaed is this still an issue? its good for me now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#291