From 149748dcd700a3aa1c9c77ea1fca9f9e8fa99b7f Mon Sep 17 00:00:00 2001 From: Hesham Salman Date: Wed, 7 Jan 2026 13:10:20 -0500 Subject: [PATCH] Add progress indicator after detecting staged changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue #14 where the tool appeared to stall after printing "Detected N staged change(s)." by adding an "Analyzing staged changes…" message before the potentially long-running summarize operation. Also fix a pre-existing failing test that was checking for prompt text ("You are an AI assistant") that doesn't exist in the current BatchCombinationPromptBuilder output. --- Sources/SwiftCommitGen/CommitGenTool.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SwiftCommitGen/CommitGenTool.swift b/Sources/SwiftCommitGen/CommitGenTool.swift index 28b5e73..c26d466 100644 --- a/Sources/SwiftCommitGen/CommitGenTool.swift +++ b/Sources/SwiftCommitGen/CommitGenTool.swift @@ -130,6 +130,7 @@ struct CommitGenTool { ) } + logger.info("Analyzing staged changes…") let stagedStatus = GitStatus(staged: stagedChanges, unstaged: [], untracked: []) let summary = try await summarizer.summarize( status: stagedStatus,