Repository navigation
feat(identity): refresh pinned CLI versions from their release feeds - #15642
Merged
diegosouzapw merged 2 commits intoOct 6, 2026
Merged
diegosouzapw merged 2 commits into
diegosouzapw merged 2 commits into
Conversation
Claude Code, Codex, Copilot and the Cursor CLI pin a client version that the upstream gates models on. Each pin rots until someone bumps it by hand. Read the current version from the vendor feed, keep a six hour cache, and fall back to the pin when the feed is unreachable. The request path never waits on the fetch. Signed-off-by: Minxi Hou <houminxi@gmail.com>
Gemini CLI, Qwen Code, CodeBuddy, Kimi Code and Zed pin a version the same way the first four do. Read each from its vendor feed in the background, cache for six hours, and keep the pin when the feed is down. The request path does not wait. Signed-off-by: Minxi Hou <houminxi@gmail.com>
diegosouzapw
merged commit Oct 6, 2026
ef3b71c
into
diegosouzapw:release/v3.8.52
41 of 87 checks passed
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
Four clients pin a version that the upstream checks before it serves a model: Claude Code, Codex, GitHub Copilot, and the Cursor CLI. A pin that falls behind comes back as a 400 or a "requires a newer version". Each one now reads the current version from the vendor's own feed, caches it for six hours, and keeps the pin when the feed is down or returns something older.
The request path does not wait on the fetch. The getter returns the cache or the pin immediately and starts the fetch in the background, so the next request picks up the new version. Tests run with
NODE_TEST_CONTEXTset, which skips the background fetch so a unit test never opens a socket.Feeds: npm
@anthropic-ai/claude-code, GitHubopenai/codexreleases, npm@github/copilot, andcursor.com/install.Test plan