Skip to content

fix: pass expiresAt as StaleAt in dry-run to render stale duration#73

Merged
claude[bot] merged 1 commit intomainfrom
claude/issue-70-20260227-0921
Feb 27, 2026
Merged

fix: pass expiresAt as StaleAt in dry-run to render stale duration#73
claude[bot] merged 1 commit intomainfrom
claude/issue-70-20260227-0921

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Feb 27, 2026

Summary

Fixes the malformed stale message in uncompact dry-run where the age duration was missing.

Before:

> Injected by Uncompact at 2026-02-27 12:00:00 UTC | ⚠️ STALE: last updated

After:

> Injected by Uncompact at 2026-02-27 12:00:00 UTC | ⚠️ STALE: last updated 3.2 hours ago

Changes

In cmd/status.go, dryRunHandler was discarding the expiresAt return value from store.Get() with _. This fix captures it and passes it as StaleAt in RenderOptions, matching the pattern already used in cmd/run.go.

Closes #70

Generated with Claude Code

Captures expiresAt from store.Get() in dryRunHandler and passes it
as StaleAt in RenderOptions, so the stale warning includes the
human-readable duration (e.g. "STALE: last updated 3.2 hours ago")
instead of trailing empty string.

Fixes #70

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 bdd40b5 into main Feb 27, 2026
1 check passed
@claude claude bot deleted the claude/issue-70-20260227-0921 branch February 27, 2026 09:46
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: dry-run shows malformed stale message — missing duration string

0 participants