Skip to content

fix: short-circuit pregen when cache is unavailable#81

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

fix: short-circuit pregen when cache is unavailable#81
claude[bot] merged 1 commit intomainfrom
claude/issue-77-20260227-1022

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Feb 27, 2026

Summary

  • Removes pregenFetch — the fallback that made a full 20-minute API call but discarded the result, providing zero benefit.
  • When config.DBPath() or cache.Open() fails, pregenHandler now logs a warning and returns nil immediately.
  • Updated warning messages to make clear that pregen is being skipped, not just that an error occurred.

Fixes #77

Generated with Claude Code

…g API call

Remove pregenFetch fallback that made a full API call but discarded
the result. When DBPath() or cache.Open() fails, log a warning and
return nil immediately — no pointless 20-minute network round-trip.

Fixes #77

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 8829a00 into main Feb 27, 2026
1 check passed
@claude claude bot deleted the claude/issue-77-20260227-1022 branch February 27, 2026 10:31
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.

pregenFetch makes expensive API call but discards the result

0 participants