From b8ecad6227f6a328517edfc442cd9bcf4d3361dc Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 4 Aug 2025 09:29:13 -0600 Subject: [PATCH] feat: make opencode beautiful by default (#24) opencode: try having compatible default theme --- cubbi/images/opencode/Dockerfile | 1 + cubbi/images/opencode/opencode_plugin.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cubbi/images/opencode/Dockerfile b/cubbi/images/opencode/Dockerfile index 6875e22..e447f52 100644 --- a/cubbi/images/opencode/Dockerfile +++ b/cubbi/images/opencode/Dockerfile @@ -67,6 +67,7 @@ RUN echo '[ -x /cubbi/init-status.sh ] && /cubbi/init-status.sh' >> /etc/bash.ba ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 ENV UV_LINK_MODE=copy +ENV COLORTERM=truecolor # Pre-install the cubbi_init RUN /cubbi/cubbi_init.py --help diff --git a/cubbi/images/opencode/opencode_plugin.py b/cubbi/images/opencode/opencode_plugin.py index 20bcde0..69b65ee 100644 --- a/cubbi/images/opencode/opencode_plugin.py +++ b/cubbi/images/opencode/opencode_plugin.py @@ -182,6 +182,9 @@ class OpencodePlugin(ToolPlugin): else: config_data = {} + # Set default theme to system + config_data.setdefault("theme", "system") + # Update with environment variables opencode_model = os.environ.get("CUBBI_MODEL") opencode_provider = os.environ.get("CUBBI_PROVIDER")