Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Version and environment (optional)
- Locally built Astra CLI with BYOK changes; exact binary version/commit not recorded.
- Deployment: CLI connected to a locally hosted Astra Server using a DeepSeek BYOK model.
- OS / architecture: macOS / aarch64.
- Terminal: Ghostty with a white/light background.
Actual behavior
Markdown bold text in CLI chat output becomes nearly invisible against the light terminal background. Regular body text is black and readable, but bold labels and section labels appear white or near-white.
Copying the output as plain text confirms that the affected content is present. This is a text rendering/contrast bug, not a request for a new feature or a report of missing model output.
Expected behavior
Markdown emphasis should remain readable on both light and dark terminal backgrounds, without requiring users to change their terminal theme.
Steps to reproduce
- Open Ghostty with a white/light background.
- Configure a model and run
astra chat -m "请简单介绍一下你自己". - Inspect the bold labels in the rendered response. In the reported output, section labels and bold bullet prefixes were nearly invisible, while ordinary body text remained readable.
Since model formatting may vary, an English prompt explicitly requesting bold labels can also be used: astra chat -m "Briefly introduce yourself using bold section labels and bullet points.".
Additional information
The local source explicitly sets the Markdown bold foreground to white in make_skin():
skin.bold.set_fg(Color::White);Location: crates/astra-cli/src/cli/stream/streaming_md.rs (line 491 in the inspected local checkout).
This renderer was not modified by the local BYOK changes. The fixed foreground color appears to explain the observed contrast problem; this has not yet been reproduced across other terminal emulators.
Suggested fix direction: preserve the terminal default foreground for bold text and apply bold emphasis without forcing white, or use background-aware styling. Other Markdown styles should also be checked for light-background contrast.
Potential workarounds are astra chat --no-color -m "Briefly introduce yourself" or switching to a dark terminal background. These have not yet been verified in the reporting terminal.
No rendering code has been changed; this report tracks the bug for a later fix.
Activity
[-]CLI: Markdown bold text is nearly invisible on light terminal backgrounds[/-][+][Bug]: CLI Markdown bold text is nearly invisible on light terminal backgrounds[/+]fix(cli): preserve terminal contrast across light and dark themes (ma…