Skip to content

Commit 1dfdafd

Browse files
committed
fix: remove incorrect banner display logic for query mode
1 parent 55b8505 commit 1dfdafd

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

sqlbot/repl.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -960,12 +960,8 @@ def main():
960960
global dbt, LLM_AVAILABLE
961961

962962
# Show banner first ONLY for CLI mode with query (not for Textual app)
963-
# Banner should only show when we'll use Rich/CLI interface, not Textual interface
964-
# IMPORTANT: Never show banner in --no-repl mode or when query is provided
965-
if args.query and not args.no_repl and args.textual and (not sys.stdin.isatty() or not LLM_AVAILABLE):
966-
# Get LLM model info for banner
967-
llm_model = os.getenv('SQLBOT_LLM_MODEL', 'gpt-5') if LLM_AVAILABLE else None
968-
show_banner(is_no_repl=True, profile=args.profile, llm_model=llm_model, llm_available=LLM_AVAILABLE)
963+
# Banner logic: Don't show banner when query is provided from command line
964+
# Banner will be shown later in interactive mode startup if appropriate
969965

970966
# Initialize everything after banner display
971967
if dbt is None:

0 commit comments

Comments
 (0)