From 251527b419c4b34211dcb043be02f5edd446a770 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 22 Jul 2026 16:45:57 +0200 Subject: [PATCH 05/10] feat: skip project init prompt and quit immediately on ctrl+c Removes the project initialization prompt that asked users to create an AGENTS.md file on startup, and makes ctrl+c quit without a confirmation dialog for a faster, less intrusive experience. --- internal/ui/model/ui.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/internal/ui/model/ui.go b/internal/ui/model/ui.go index dae66f26..f26987f4 100644 --- a/internal/ui/model/ui.go +++ b/internal/ui/model/ui.go @@ -558,8 +558,6 @@ func New(com *common.Common, initialSessionID string, continueLast bool) *UI { desiredFocus := uiFocusEditor if !com.Config().IsConfigured() { desiredState = uiOnboarding - } else if n, _ := com.Workspace.ProjectNeedsInitialization(); n { - desiredState = uiInitialize } // set initial state @@ -3001,12 +2999,8 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd { } if key.Matches(msg, m.keyMap.Quit) && !m.dialog.ContainsDialog(dialog.QuitID) { - // Always handle quit keys first - if cmd := m.openQuitDialog(); cmd != nil { - cmds = append(cmds, cmd) - } - - return tea.Batch(cmds...) + // Quit immediately without confirmation + return tea.Quit } // Route all messages to dialog if one is open. -- 2.53.0