Skip to content

Commit b4e0e6c

Browse files
HumanBean17claude
andcommitted
fix(cli install): pass missing verbose arg and revert broken custom style
1. Pass required `verbose=not quiet` and `quiet=quiet` to run_build_ast_graph() — the function gained a mandatory `verbose` parameter, which the installer call was missing, causing CI failure. 2. Revert the custom questionary Style from #292. The hardcoded fg:cyan/fg:blue colors were added to improve visibility on light terminal themes but broke dark themes. Questionary's defaults already use ●/○ indicator characters that are theme-independent, so a custom style is unnecessary and just creates a light-vs-dark conflict. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 39b5e0a commit b4e0e6c

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

java_codebase_rag/installer.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,24 @@ 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
126-
custom_style = Style(
124+
# Strip default ANSI colors — rely on ●/○ indicators only, no fg/bg highlights
125+
no_color_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+
("highlighted", ""),
128+
("selected", ""),
129+
("pointer", "bold"),
135130
]
136131
)
137132

138133
try:
139134
if prompt_type == "checkbox":
140-
return questionary.checkbox(message, choices=choices, style=custom_style).ask()
135+
return questionary.checkbox(message, choices=choices, style=no_color_style).ask()
141136
elif prompt_type == "select":
142-
return questionary.select(message, choices=choices, style=custom_style).ask()
137+
return questionary.select(message, choices=choices, style=no_color_style).ask()
143138
elif prompt_type == "text":
144-
return questionary.text(message, default=default, style=custom_style).ask()
139+
return questionary.text(message, default=default, style=no_color_style).ask()
145140
elif prompt_type == "confirm":
146-
return questionary.confirm(message, style=custom_style).ask()
141+
return questionary.confirm(message, style=no_color_style).ask()
147142
else:
148143
raise ValueError(f"Unknown prompt_type: {prompt_type}")
149144
except KeyboardInterrupt:
@@ -796,6 +791,8 @@ def run_init_if_needed(
796791
g = run_build_ast_graph(
797792
source_root=cfg.source_root,
798793
kuzu_path=cfg.kuzu_path,
794+
verbose=not quiet,
795+
quiet=quiet,
799796
env=env,
800797
)
801798
if g.returncode != 0:

0 commit comments

Comments
 (0)