From 73bbfb334d1685fb726b68c95fe664d74afa829e Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 1 Mar 2026 10:12:20 +0000 Subject: [PATCH] fix: log writeDisplayCache error in snapshot-injection path Replace silent discard of writeDisplayCache error on the runWithSnapshot path with the same warn-log pattern used at the other two call sites. Fixes #369 Co-Authored-By: Grey Newell Co-Authored-By: Claude Sonnet 4.6 Co-authored-by: claude[bot] --- cmd/run.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 99be999..faa503f 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -425,7 +425,9 @@ func runWithoutCache(cfg *config.Config, proj *project.Info, wm *project.Working fmt.Print(output) // Write to display cache so the UserPromptSubmit hook (show-cache) can display it. - _ = writeDisplayCache(output) + if err := writeDisplayCache(output); err != nil { + logFn("[warn] display cache write error: %v", err) + } // Write activity log entry (non-fatal on error). _ = activitylog.Append(activitylog.Entry{