fix(cli): make onboard readable on light-background terminals#199
Merged
Conversation
Detect terminal light/dark (env override, background hint, OSC 11 probe, COLORFGBG, fallback dark) and apply a scheme-aware palette so onboard text is legible on white; dark rendering is byte-for-byte unchanged. Also drop two hardcoded white table columns (skill/cron) invisible on light backgrounds. Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
GNU screen neither answers the OSC 11 background query nor swallows it, so the probe bytes echo as visible garbage on the first onboard render. Default tmux is TERM=screen-256color and cannot answer a bare query either. Gate the probe on TERM so both fall back to COLORFGBG/dark cleanly. Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
0xKT
force-pushed
the
feat/cli_light_dark_theme
branch
from
July 23, 2026 09:50
ea5896a to
0927674
Compare
0xKT
added a commit
that referenced
this pull request
Jul 23, 2026
## Summary Bump the package version from 0.1.8 to 0.1.9 (patch release). All five PRs merged since v0.1.8 are fixes, no new features: - #204 fix: add configurable llm_call_timeout to bound stalled LLM calls - #199 fix(cli): make onboard readable on light-background terminals - #189 fix(cli): pick the first node >= 22 across all PATH entries - #196 fix(commitlint): unify commit/PR length to header-max-length - #190 fix(tui): surface the real turn-failure detail, not just the code ## Type - [ ] Fix - [ ] Feature - [ ] Docs - [ ] CI / tooling - [ ] Refactor - [x] Other ## Verification - [x] Relevant tests pass locally - [x] Relevant lint / type checks pass locally - [ ] User-facing docs or screenshots are updated when needed Bump is limited to `pyproject.toml` and `uv.lock` (`uv lock` sync). Commit message lint passes locally. ## Risk - [x] Security impact considered - [x] Backward compatibility considered - [x] Rollback path is clear for risky changes Version-only change; no code or behavior change. ## Related Issues N/A Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
raven onboardwas unreadable on light-background terminals: the palette washardcoded for a dark background and the CLI had no light/dark detection, so
near-white / bright-yellow text vanished on white (issue #169, reproduced on a
released build).
This adds
raven/cli/_theme.py: light/dark detection (envRAVEN_THEME/RAVEN_TERM_BACKGROUNDhint / OSC 11 background probe /COLORFGBG, fallingback to dark) plus a scheme-aware palette, wired into the onboarding wizard and
the shared questionary style.
literals; verified by a rendering diff and a parity test).
ui-tui/src/theme.ts.raven ...commands do not probe the terminal.
whitetable columns (skill/cron) that wereinvisible on light backgrounds.
Scope is deliberately limited to what fails on light: named ANSI colors
(
red/green/cyan...) elsewhere are terminal-adaptive and were left as-is.Type
Verification
Note for reviewers: the OSC 11 terminal probe can only be exercised on a real
TTY (not in CI). Please confirm on a light-background terminal that
raven onboardis now legible, and on a dark terminal that it is unchanged(
RAVEN_THEME=dark/RAVEN_THEME=lightforce a scheme).Risk
Dark output is unchanged; the new env vars are additive; rollback is a single
commit revert.
Related Issues
Closes #169