Bläddra i källkod

chore: refine TUI config warning presentation

maou-shonen 3 månader sedan
förälder
incheckning
5ae13be582
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 1
      docs/configuration.md
  2. 2 1
      src/tui.ts

+ 1 - 1
docs/configuration.md

@@ -15,7 +15,7 @@ Complete reference for all configuration files and options in oh-my-opencode-sli
 
 > **💡 JSONC recommended:** Use the `.jsonc` extension to add comments and trailing commas. If both `.jsonc` and `.json` exist, `.jsonc` takes precedence.
 
-If OMO-Slim detects an invalid plugin config for the current project, the TUI sidebar shows a warning. Run `oh-my-opencode-slim doctor` from your project root for full diagnostics.
+If OmO-slim detects an invalid plugin config for the current project, the TUI sidebar shows a warning. Run `oh-my-opencode-slim doctor` from your project root for full diagnostics.
 
 ---
 

+ 2 - 1
src/tui.ts

@@ -10,6 +10,7 @@ import {
 } from './tui-state';
 
 const PLUGIN_NAME = 'oh-my-opencode-slim';
+const CONFIG_WARNING_COLOR = 'orange';
 const FALLBACK_SIDEBAR_AGENTS = SUBAGENT_NAMES.filter(
   (agent) =>
     agent !== 'councillor' &&
@@ -170,7 +171,7 @@ function buildConfigStatusRow(
       marginBottom: 1,
     },
     [
-      text({ fg: 'yellow' }, ['Config invalid']),
+      text({ fg: CONFIG_WARNING_COLOR }, ['Config invalid']),
       text({ fg: theme.textMuted }, ['Run doctor for details']),
     ],
   );