Add extended prompt cache TTL setup option - #6515
Open
Sanskarzz wants to merge 1 commit into
Open
Conversation
Sanskarzz
requested review from
ChrisJBurns,
JAORMX,
amirejaz,
aponcedeleonch,
jhrozek,
rdimitrov and
reyortiz3
as code owners
September 4, 2026 15:17
Sanskarzz
force-pushed
the
prompt-cache
branch
from
September 4, 2026 18:02
7d242e4 to
4b47ee5
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6515 +/- ##
==========================================
+ Coverage 78.25% 78.32% +0.07%
==========================================
Files 770 770
Lines 75389 75632 +243
==========================================
+ Hits 58996 59240 +244
+ Misses 16388 16387 -1
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--extended-ttl-cacheoption tothv llm setupandthv llm config set.Fixes #6453
Type of change
Test plan
task test)task test-e2e)task lint-fix)task build)task docs)API Compatibility
v1beta1API, OR theapi-break-allowedlabel is applied and the migration guidance is described above.Changes
Does this introduce a user-facing change?
Yes. Users can enable a persisted one-hour prompt-cache lifetime with
--extended-ttl-cache; Claude Code is currently supported, and the setting can be cleared with--extended-ttl-cache=false.Implementation plan
Approved implementation plan
falseclears it.Special notes for reviewers
Claude Code is currently the only client with extended prompt-cache TTL support. Other detected clients are reported as unsupported without failing setup.
task testis currently blocked by agotestfmt v2.5.0parser panic (Empty package name encountered);task buildsucceeds.