Skip to content

[Bug] /model /sessions command TUI selector has extremely low text contrast on macOS terminal (v0.8.64) #3474

Description

@Yanzk

Description

When using either the /model or /session commands to open the selection popup, the contrast between the text and the background is extremely low, making the options very hard to read. However, the /config command window displays text correctly. I suspect the underlying UI library used for rendering these list selectors is failing to correctly adapt to the system terminal theme colors, leading to a conflict between foreground and background colors.

Chinese:
使用 /model 和 /session 命令弹出选择窗口时,文字和背景的对比度极低,导致文字难以看清。但使用 /config 命令弹出的配置窗口显示正常。我推测用于渲染列表选择的底层 UI 库未能正确适配系统终端主题颜色,导致出现前景色/背景色混淆的问题。

Steps to reproduce

  1. Launch codewhale in the terminal.
  2. Type the command /model and press Enter, observe the popup (text is blurred).
  3. Type the command /sessions and press Enter, observe the popup (text is blurred as well).

Chinese:

  1. 在终端中启动 codewhale。
  2. 输入命令 /model 并回车,观察弹窗(文字模糊)。
  3. 输入命令 /sessions 并回车,观察弹窗(文字同样模糊)。

Expected behavior

I expect the color scheme of the /model window to be consistent with the /config window, ensuring sufficient high contrast between the foreground text and background for easy readability.

期望 /model 窗口的配色能与 /config 窗口保持一致,确保前景色和背景色有足够的高对比度,方便阅读。

Actual behavior

Impact

Environment

  • codewhale version: v0.8.64
  • OS: macOS (Tested with the Pro1 theme. Also switched to Pro, ClearDark, and Homebrew themes, but the issue persists.)
  • Shell: zsh (macOS default)
  • Terminal app: macOS native Terminal.app
    Chinese:
  • codewhale version: v0.8.64
  • OS: macOS (Pro1主题下测试,也切换过 Pro, ClearDark, Homebrew 主题测试,问题依旧)
  • Shell: zsh (macOS 自带)
  • Terminal app: 原生 macOS 终端 (Terminal.app)

Logs, screenshots, or recordings

/model
Image

/sessions
Image

/config

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreliabilityReliability, flaky behavior, retries, fallbacks, and robustnesstuiTerminal UI behavior, rendering, or interactionuxUser experience, interaction, or presentation polishv0.8.66Targeting v0.8.66

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions