This commit is contained in:
Alexander Khodyrev 2025-08-26 22:29:19 +03:00
parent 25ed7d3f8d
commit 1312bf10c0

6
tui.go
View file

@ -69,6 +69,7 @@ func initialModel(config *Config, query string, verbose bool) model {
l := list.New([]list.Item{}, delegate, width, 20)
l.SetShowTitle(false)
l.SetShowHelp(false)
l.SetShowStatusBar(false)
l.SetFilteringEnabled(false)
l.Title = "" // Set empty title
@ -85,7 +86,7 @@ func initialModel(config *Config, query string, verbose bool) model {
query: query,
verbose: verbose,
loading: true,
status: "Initializing...",
status: "Querying",
spinner: sp,
list: l,
}
@ -114,10 +115,7 @@ func (m model) Init() tea.Cmd {
return tea.Batch(
m.spinner.Tick,
func() tea.Msg {
m.status = "Building prompt..."
prompt := buildPrompt(m.config, m.query)
m.status = "Querying LLM..."
commands, err := queryLLM(m.config, prompt, m.verbose)
if err != nil {
return err