Skip to content

Commit d04f0d9

Browse files
HumanBean17claude
andcommitted
fix(cli install): pass missing verbose arg and use background-neutral styles
1. Pass required `verbose=not quiet` to run_build_ast_graph() — fixes CI failure where the argument was missing after the function signature changed. 2. Drop hardcoded blue/cyan foreground colors from questionary styles. Bold + underline without explicit fg works on both light AND dark terminal backgrounds; the previous blue/cyan palette was unreadable on dark themes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 39b5e0a commit d04f0d9

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

java_codebase_rag/installer.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,16 @@ def prompt(
121121
import questionary
122122
from prompt_toolkit.styles import Style
123123

124-
# Custom style for better visibility on both light and dark backgrounds
125-
# Uses bold and darker colors (blue/cyan) which work well on white backgrounds
124+
# Use bold/underline without hardcoded fg colors — works on both light and dark backgrounds
126125
custom_style = Style(
127126
[
128-
("qmark", "fg:cyan bold"), # Question mark '?'
129-
("question", "bold"), # Question text
130-
("answer", "fg:blue bold"), # Selected answer (darker blue for white bg)
131-
("pointer", "fg:cyan bold"), # Selection pointer '>'
132-
("selected", "fg:blue bold"), # Selected item in checkbox
133-
("highlighted", "fg:blue underline"), # Highlighted item with underline
134-
("instruction", "dim"), # Instruction text
127+
("qmark", "bold"),
128+
("question", "bold"),
129+
("answer", "bold"),
130+
("pointer", "bold underline"),
131+
("selected", "bold"),
132+
("highlighted", "bold underline"),
133+
("instruction", "dim"),
135134
]
136135
)
137136

@@ -796,6 +795,8 @@ def run_init_if_needed(
796795
g = run_build_ast_graph(
797796
source_root=cfg.source_root,
798797
kuzu_path=cfg.kuzu_path,
798+
verbose=not quiet,
799+
quiet=quiet,
799800
env=env,
800801
)
801802
if g.returncode != 0:

0 commit comments

Comments
 (0)