fix(cli): suppress no-git-repo note with --quiet flag

The "Note: No git repository initialized" message now respects the
--quiet flag, preventing non-essential output in quiet mode.

Fixes #1080

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
wickham
2026-01-17 00:16:05 -08:00
committed by Steve Yegge
parent b6155c69f2
commit 5fab5f58e6
2 changed files with 38 additions and 1 deletions

View File

@@ -355,7 +355,9 @@ func startDaemonProcess(socketPath string) bool {
// Skip attempting to start and avoid the 5-second wait if not in git repo
if !isGitRepo() {
debugLog("not in a git repository, skipping daemon start")
fmt.Fprintf(os.Stderr, "%s No git repository initialized - running without background sync\n", ui.RenderMuted("Note:"))
if !quietFlag {
fmt.Fprintf(os.Stderr, "%s No git repository initialized - running without background sync\n", ui.RenderMuted("Note:"))
}
return false
}