Skip to content

fix: log writeDisplayCache error in snapshot-injection path#372

Merged
claude[bot] merged 1 commit intomainfrom
claude/issue-369-20260301-1011
Mar 1, 2026
Merged

fix: log writeDisplayCache error in snapshot-injection path#372
claude[bot] merged 1 commit intomainfrom
claude/issue-369-20260301-1011

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Mar 1, 2026

Summary

Replace the silent discard (_ = writeDisplayCache(output)) on the runWithSnapshot path with the same warn-log pattern used at the other two call sites:

if err := writeDisplayCache(output); err != nil {
    logFn("[warn] display cache write error: %v", err)
}

This ensures cache write failures are surfaced to the user in logs rather than being silently dropped.

Fixes #369

Generated with Claude Code

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 <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
@claude claude bot merged commit 2f20b91 into main Mar 1, 2026
1 check passed
@claude claude bot deleted the claude/issue-369-20260301-1011 branch March 1, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: writeDisplayCache error silently discarded in snapshot-injection path

0 participants