From 77e6a2a7d5714298ac4ac68d8d6f5edd6c8d2573 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 08:24:36 +0000 Subject: [PATCH] fix: print zip truncation warning unconditionally to stderr Previously the truncation warning was routed through logFn, which is a no-op in non-debug mode. Users on large repos silently received incomplete graph analysis with no indication truncation had occurred. Fixes #64 Co-Authored-By: Grey Newell Co-Authored-By: Claude Sonnet 4.6 --- cmd/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/run.go b/cmd/run.go index 4f20a1f..6791750 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -145,7 +145,7 @@ func runHandler(cmd *cobra.Command, args []string) error { // else: fall through to use stale cache } else { if truncated { - logFn("[warn] repo zip truncated at 10 MB limit — large repos may produce incomplete graph analysis") + fmt.Fprintf(os.Stderr, "[warn] repo zip truncated at 10 MB limit — large repos may produce incomplete graph analysis\n") } apiClient := api.New(cfg.BaseURL, cfg.APIKey, debug, logFn) freshGraph, err := fetchGraphWithCircularDeps(ctx, apiClient, proj.Name, zipData, logFn) @@ -225,7 +225,7 @@ func runWithoutCache(cfg *config.Config, proj *project.Info, wm *project.Working return silentExit() } if truncated { - logFn("[warn] repo zip truncated at 10 MB limit — large repos may produce incomplete graph analysis") + fmt.Fprintf(os.Stderr, "[warn] repo zip truncated at 10 MB limit — large repos may produce incomplete graph analysis\n") } apiClient := api.New(cfg.BaseURL, cfg.APIKey, debug, logFn)