System theme doesn't apply Ghostty transparency on load (v1.1.10) #5824

Closed
opened 2026-02-16 17:57:16 -05:00 by yindo · 0 comments
Owner

Originally created by @teracrafts on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

The system theme does not inherit/apply terminal transparency settings from Ghostty on startup. However, a custom theme with "background": { "dark": "none", "light": "none" } works correctly.

Environment

  • OpenCode version: 1.1.10
  • Terminal: Ghostty
  • OS: macOS (Darwin 25.2.0)

Ghostty config

background-opacity = 0.5
background-blur-radius = 20

OpenCode config

{
  "theme": "system",
  "$schema": "https://opencode.ai/config.json"
}

Steps to reproduce

  1. Configure Ghostty with background-opacity = 0.5
  2. Set OpenCode theme to "system" in ~/.config/opencode/opencode.json
  3. Set "theme": "system" in ~/.local/state/opencode/kv.json
  4. Launch opencode
  5. Observe: Background is opaque, not transparent

Expected behavior

The system theme should inherit Ghostty's transparency settings and display a transparent background.

Actual behavior

The background is opaque/solid black despite Ghostty having transparency configured.

Workaround

Using a custom theme with explicit "none" backgrounds works:

{
  "theme": {
    "background": { "light": "none", "dark": "none" },
    "backgroundPanel": { "light": "none", "dark": "none" },
    "backgroundElement": { "light": "none", "dark": "none" }
  }
}

Related issues

  • #4027 - System theme in macOS with Ghostty doesn't apply opacity
  • #3688 - System Theme no longer works after v1.0.0
Originally created by @teracrafts on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ## Description The `system` theme does not inherit/apply terminal transparency settings from Ghostty on startup. However, a custom theme with `"background": { "dark": "none", "light": "none" }` works correctly. ## Environment - **OpenCode version:** 1.1.10 - **Terminal:** Ghostty - **OS:** macOS (Darwin 25.2.0) ## Ghostty config ``` background-opacity = 0.5 background-blur-radius = 20 ``` ## OpenCode config ```json { "theme": "system", "$schema": "https://opencode.ai/config.json" } ``` ## Steps to reproduce 1. Configure Ghostty with `background-opacity = 0.5` 2. Set OpenCode theme to `"system"` in `~/.config/opencode/opencode.json` 3. Set `"theme": "system"` in `~/.local/state/opencode/kv.json` 4. Launch opencode 5. Observe: Background is opaque, not transparent ## Expected behavior The system theme should inherit Ghostty's transparency settings and display a transparent background. ## Actual behavior The background is opaque/solid black despite Ghostty having transparency configured. ## Workaround Using a custom theme with explicit `"none"` backgrounds works: ```json { "theme": { "background": { "light": "none", "dark": "none" }, "backgroundPanel": { "light": "none", "dark": "none" }, "backgroundElement": { "light": "none", "dark": "none" } } } ``` ## Related issues - #4027 - System theme in macOS with Ghostty doesn't apply opacity - #3688 - System Theme no longer works after v1.0.0
yindo added the opentui label 2026-02-16 17:57:16 -05:00
yindo closed this issue 2026-02-16 17:57:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5824