Skip to content

Commit fabf639

Browse files
committed
fix: auto initialize project
1 parent d55d7af commit fabf639

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎internal/tui/tui.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
317317
// Reinitialize the model dialog
318318
a.modelDialog.Init()
319319

320+
// Initialize project
321+
a.Update(dialog.CloseInitDialogMsg{Initialize: true})
322+
320323
// Reinitialize the primary agent
321324
a.app.InitializePrimaryAgent()
322325

@@ -627,7 +630,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
627630
a.showFilepicker = !a.showFilepicker
628631
a.filepicker.ToggleFilepicker(a.showFilepicker)
629632
a.app.SetFilepickerOpen(a.showFilepicker)
630-
633+
631634
// Close other dialogs if opening filepicker
632635
if a.showFilepicker {
633636
a.showToolsDialog = false

0 commit comments

Comments
 (0)