Skip to content

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

Closed

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

Activity

  1. github-actions commented on Aug 26, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. blaadje commented on Aug 26, 2025

    @blaadje
    Author

    Closing this as system theme provided by env variable fixed the layout issue. (fish : set -x OPENCODE_THEME system)

    Still scrolling through content in normal mode is not possible, which is basically why I would use opencode in nvim.

  3. hongkongkiwi commented on Sep 20, 2025

    @hongkongkiwi

    This absolutely doesn't fix the issue for me. Scrolling no matter the theme only scrolls through the command window! Not the actual chat output (which is what I want).

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

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