anomalyco / anomalyco/opencode

[FEATURE]: Rounded corners for TUI code blocks and input box

Open
#42,659 0 comments 1 reaction 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 14, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Describe the enhancement you want to request

Add optional rounded corners for the code-block panels and the input box in the TUI (opencode cli), configurable via theme or tui config.

Why

With a compositor that rounds window corners (e.g. Hyprland decoration.rounding), the rounded terminal frame clashes with the hardcoded square-cornered borders opencode draws around assistant code blocks and the input field. A rounded style would look consistent with rounded terminal windows.

Details
  • The TUI renders these borders with hardcoded square box-drawing characters (┌┐└┘); the rounded variants (╭╮╰╯) are not present in the binary at all.
  • The theme JSON format only exposes colors (background, border, text, diff/markdown/syntax colors) — there is no border-style or corner-radius option.
  • tui.json similarly has no UI style option beyond theme.
Proposal

Support a border style (e.g. "round" / "square") in the theme or tui.json, defaulting to the current square corners so existing setups are unchanged. Since the TUI is built on opentui, if the underlying renderer already supports rounded corners this may just be exposing an existing option.

Environment: opencode 1.18.18 (opentui TUI), Linux/Hyprland.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.