Skip to content

ci: bypass AI Gateway cache for Bonk reviews - #268

Merged
lukevalenta merged 1 commit into
mainfrom
lvalenta/bonk-cache
Jul 30, 2026
Merged

ci: bypass AI Gateway cache for Bonk reviews#268
lukevalenta merged 1 commit into
mainfrom
lvalenta/bonk-cache

Conversation

@lukevalenta

Copy link
Copy Markdown
Contributor

Bonk routes through a Cloudflare AI Gateway. With response caching enabled on the gateway, re-running /bonk review on a PR returns the first run's cached completion, so the review stays stale even after new commits are pushed (observed on #264 after a force-push: three re-runs all returned an identical review of the pre-split code).

Inject cf-aig-skip-cache via OpenCode's provider.options.headers so every model request bypasses the gateway cache and reflects the current PR.

Bonk routes through a Cloudflare AI Gateway. With response caching enabled
on the gateway, re-running `/bonk review` on a PR returns the first run's
cached completion, so the review stays stale even after new commits are
pushed (observed on #264 after a force-push: three re-runs all returned an
identical review of the pre-split code).

Inject cf-aig-skip-cache via OpenCode's provider.options.headers so every
model request bypasses the gateway cache and reflects the current PR.
@lukevalenta
lukevalenta merged commit 40f1144 into main Jul 30, 2026
6 of 7 checks passed
@lukevalenta
lukevalenta deleted the lvalenta/bonk-cache branch July 30, 2026 18:20
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