Skip to content

OpenCode displays/behaves incorrectly when launched inside Neovim’s terminal (running in Kitty) — works fine in Kitty directly #2257

@blaadje

Description

@blaadje

Description

When I launch opencode inside Neovim’s integrated terminal (with Neovim itself running inside Kitty), the TUI is broken: right border artifacts, misaligned input area, and unstable interaction.
When I launch opencode directly in a Kitty tab, everything works as expected.

Screenshot: left = Neovim :terminal running opencode (broken), right = Kitty terminal running opencode (OK).
(see attached image)

Steps to Reproduce

  • Open Kitty.

  • Start Neovim.

  • Open Neovim’s built-in terminal: :terminal.

  • Run opencode.

Compare the result with running opencode directly inside Kitty (without Neovim).

Observed Behavior

  • Broken TUI rendering inside Neovim’s terminal (right border cut off, input box misplaced).
  • Background stays black (instead of taking native background)
Image

Version: opencode v0.5.12 (shown in UI).

Expected Behavior

Should render and behave exactly the same as in Kitty: clean interface, stable input area, working shortcuts.

Environment

OS: Windows 10

Terminal: Kitty.

Neovim: running inside Kitty, with :terminal.

OpenCode: v0.5.12.

Note

For reference crush had similar issue at the beginning that has been fixed (couldn't find the right commit) cf

Image

Metadata

Metadata

Assignees

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