GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(server): drop retired Claude gateway models on refresh by StiensWout · Pull Request #43787 · pingdotgg/t3code Conversation
Contributor
Refreshing Claude could leave a retired gateway model in the picker when the gateway’s only remaining model was already configured manually. Claude now checks for discovered models before deduplicating picker entries and recognizes a configured model by either its reported ID or its resolved gateway target when the row identifies one. Built-in backend routes and Claude Code family aliases still preserve cached models when discovery may be incomplete. Reproduction on mainCommit f08bafe07f (main), in the running web app:
The picker still lists the model the gateway stopped publishing, together with the model you added by hand. Expected: The model the gateway stopped publishing is gone. The model you added by hand is still listed. The cause is at EvidenceEnvironment: Linux x64, the repository's own tests. Proven: the repro fails at the test commit f585adee09 and passes on the head 100f44117b, both on main 99420d6f11.
Outside view: a person sees it in the running web app by following the steps under Reproduction on main. Tests
Not in this change
Who did the work
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsCo-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]> …figured Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]>
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Classify gateway inventory apps/server/src/provider/ClaudeModelCatalog.ts, apps/server/src/provider/ClaudeModelCatalog.test.ts |
claudeReportedModels now returns the models and a hasNonCatalogModels flag. Tests cover gateway aliases, catalog and custom identifiers, and model variants. |
Use inventory classification apps/server/src/provider/ClaudeProvider.ts, apps/server/src/provider/ProviderRegistry.test.ts |
Claude provider discovery uses the flag to determine whether the model list is incomplete. A registry test checks that a retired gateway model is removed while a surviving manually configured model remains. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code#43603 — The PR addresses the reported stale gateway model symptom through Claude model classification and discovery logic. The issue description identifies ProviderRegistry retention as the root cause, so the PR may address only part of the issue.Suggested reviewers: juliusmarminge
100f4Claude provider refreshes now remove retired gateway models even when the one remaining gateway model is also configured manually. Built-in backend routes and family aliases still preserve cached models. The change is narrow and reversible, and I found no concrete defect that should block merging.
Explanation
The title "fix(server): drop retired Claude gateway models on refresh" matches the main change. The raw summary and objectives show the PR keeps retired gateway models from staying in the Claude picker after refresh when a manually configured model remains. The title is specific and follows the conventional commit style that the template requests. It does not name the configured-model dedup detail, which is acceptable.
Explanation
The description covers the problem, the change, the reproduction steps, and the verification. It explains the cause at ClaudeProvider.ts:915, names the failing and passing commits, and reports the test command and results. It also states the out-of-scope family alias case. Gaps: the Scope section does not link a bug issue. The description cites related issues #36279 and #36287 in the Problem area, but it does not say that they show the bug, and it does not explain why no issue is needed. The Verification section is strong, but it relies on commit hashes and a reproduction that is not stated as run in a repo-wide check. The description also lists the author's agent chain, which the template asks for. The explanation is consistent with the template, so the check passes with a minor gap in Scope.
407ee7a1-c510-47dd-a350-892d58f018b9apps/server/src/provider/ClaudeModelCatalog.test.tsapps/server/src/provider/ClaudeModelCatalog.tsapps/server/src/provider/ClaudeProvider.tsapps/server/src/provider/ProviderRegistry.test.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
512afa7 to
b2608e2
Compare
EvidenceReal web app, Chromium, light theme, 1280×800 CSS viewport, Claude Code 2.1.332, separate fresh databases and Claude config directories. Added gateway/claude-current as custom before enabling gateway discovery. Initially published current and retired models, refreshed until both appeared, then retired the second model and ran three refreshes with 8.5-second waits. Both Claude caches contained only current afterward. Base retained the retired model in Settings and the composer; head removed it while preserving the custom model.
Gateway script · Browser driver · Reproduction instructions Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…#43787) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit beb24ff)
…#43787) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit beb24ff)
包含上游提交: - pingdotgg#43459 (01848ba) 父线程 Stop 后恢复的子线程完成后仍能唤醒父线程 - pingdotgg#43558 (36816d2) 已完成的子智能体线程自行 settle,不再等待父线程 - pingdotgg#43624 (6e964c1) Claude 网关不再列出的模型在刷新时移除 - pingdotgg#43745 (eadd4e7) steered 排队消息之后的一轮复用上一个 checkpoint(不含 fork 未移植的 unsettledStoppedProviderTurn) - pingdotgg#43771 (e66a006) Codex 0.171+ 压缩后不再重复注入两份 T3 上下文 - pingdotgg#43780 (99420d6) 模型目录刷新暂时缺少某模型时 Codex 线程保留所选模型 - pingdotgg#43787 (beb24ff) 刷新时移除已下线的 Claude 网关模型 - pingdotgg#43854 (d034b66) Claude 子线程任务在回复中途结束时保留会话用于唤醒轮;测试预期补上 fork 的 stoppable 字段 - pingdotgg#43868 (34846ca) 上下文交接预算严格遵守 token 上限 - pingdotgg#43897 (002594a) 对应测试:fork /compact 用例超出 64k 交接预算
…#43787) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit beb24ff)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.