Skip to content

fix(config): point the cache_ttl error at the config file, not --refresh - #75

Merged
aaearon merged 2 commits into
mainfrom
fix/cache-ttl-error-remedy
Aug 23, 2026
Merged

aaearon merged 2 commits into
mainfrom
fix/cache-ttl-error-remedy

Conversation

@aaearon

@aaearon aaearon commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Codex review finding (Medium) on the pending v0.10.0 delta.

The non-positive cache_ttl error suggested --refresh, but:

  • status, revoke and favorites add have no --refresh flag;
  • config.Load rejects the value before any command-level flag is read, so --refresh could not help even where it exists.

The message now names the actual remedy — remove the setting to fall back to the default — and interpolates DefaultCacheTTL rather than hardcoding 4h.

Also updated the CLAUDE.md rationale and the v0.10.0 CHANGELOG line, both of which advertised --refresh.

Test expectation updated first (watched it fail), then the message. Subtest names renamed off --refresh.

Verified: gofmt clean, build, -race, -shuffle=on, integration — all rc=0.

@aaearon
aaearon merged commit 6daa899 into main Aug 23, 2026
2 checks passed
@aaearon
aaearon deleted the fix/cache-ttl-error-remedy branch August 23, 2026 17:49
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.

1 participant