Repository navigation
feat(plugin): opt in to manual pings with x-context-guru-ping; ping explains an unheld cache - #667
Merged
Merged
Conversation
…xplains an unheld cache The install adds `x-context-guru-ping: 1` to env.ANTHROPIC_CUSTOM_HEADERS so the proxy may hold a session's cache request for a manual ping when keep-alive is off. The variable is NEWLINE-separated (a comma-joined value arrives as one corrupted header), so the line is appended, the user's own headers and any x-context-guru-token are kept, a ping line the user set is left alone, and uninstall removes only the line we recorded adding. --no-ping-header skips it. `cg.py ping` and the mod's toast use cachestate's ping_reason on a 409 "not held" instead of blaming keep-alive. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Osher Elhadad <[email protected]>
added 3 commits
October 22, 2026 12:33
below limits, pings used, stopped and no entry join the existing five, in cg.py ping and the mod toast. A code from a newer server reads "cannot ping this session right now". Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Osher Elhadad <[email protected]>
…in means "unavailable" joins the other nine ping_reason codes in cg.py and the mod (a test per code). install.sh reports a ping_note consent line whenever it writes the x-context-guru-ping header (what the server keeps, for how long, that it never pings automatically for it), accepts --no-ping-header, and carries it in the printed confirm command. The install skill relays the note. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Osher Elhadad <[email protected]>
…consent line Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Osher Elhadad <[email protected]>
amiddavid
added a commit
that referenced
this pull request
Oct 22, 2026
…0.2.4) (#673) chore(plugin): bump the plugins for v0.5.4 (Claude Code 0.5.4, Codex 0.2.4) Both plugins changed in this release, so installed plugins must update. - Claude Code plugin: the new band and pane (#659), one status-line timer and the 12 old commands removed (#660), the Ping header and ping reasons (#667), and the save-more settings card (#648). - Codex plugin: the vendored cg.py and the save-more settings card from #648, #660 and #667. Assisted-By: Claude Signed-off-by: DAVID AMID <[email protected]>
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.
Follow-up to #659 for the manual-only hold (#666).
x-context-guru-ping: 1toenv.ANTHROPIC_CUSTOM_HEADERS, NEWLINE-separated (Claude Code reads that variable by lines; a comma-joined value arrives as one corrupted header). It is appended: the user's headers and a hostedx-context-guru-tokenare kept, a ping line the user set is left alone, re-runs add nothing twice, and a project installed before this gets it on its next install run. Uninstall removes only the line we recorded adding (and the variable, if nothing else is in it).--no-ping-headerskips it.cg.py pingand the mod toast use cachestate'sping_reasonon a 409 "not held", with the wording core-backend suggested. The Codex copy ofcg.pyis in sync.other_env_keysno longer counts our header line as the user's.Tests: new ping_header_test.go (add, merge, re-run, uninstall, user-owned line, opt-out, repair), a ping_reason Go test, claude plugin validate and test (22), full go test ./context-guru-plugin/.
Assisted-By: Claude Opus 5.5 [email protected]