The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 12:00 UTC
fix(claude): keep model upgrade notices when signed out (#23272)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Victor Vogel committed
Oct 30, 2026 at 15:45 UTC
ae1a3b10e67ed14cffff65be3e02036557f2097c
2 files changed
+37
apps/server/src/provider/ClaudeProvider.ts
+1
@@ -612,6 +612,7 @@ export const checkClaudeProviderStatus = Effect.fn("checkClaudeProviderStatus")(
612
enabled: claudeSettings.enabled,
613
checkedAt,
614
models,
615
+ updateRequiredModels,
616
slashCommands: dedupedSlashCommands,
617
skills,
618
probe: {
apps/server/src/provider/ProviderRegistry.test.ts
+36
@@ -2465,6 +2465,42 @@ it.layer(
2465
),
2466
);
2467
2468
+ it.effect("tells a logged-out CLI which models need a Claude Code update", () =>
2469
+ Effect.gen(function* () {
2470
+ const status = yield* checkClaudeProviderStatus(
2471
+ defaultClaudeSettings,
2472
+ claudeCapabilities({
2473
+ tokenSource: "none",
2474
+ apiKeySource: "none",
2475
+ apiProvider: "firstParty",
2476
+ }),
2477
+ { ANTHROPIC_BASE_URL: "" },
2478
+ undefined,
2479
+ {
2480
+ models: [
2481
+ {
2482
+ model: { slug: "claude-next", name: "Next", isCustom: false, capabilities: null },
2483
+ runtime: {},
2484
+ compatibility: { minVersion: "1.1.0" },
2485
+ },
2486
+ ],
2487
+ },
2488
+ );
2489
+ assert.strictEqual(status.auth.status, "unauthenticated");
2490
+ assert.deepStrictEqual(status.updateRequiredModels, [
2491
+ { slug: "claude-next", name: "Next", minVersion: "1.1.0" },
2492
+ ]);
2493
+ }).pipe(
2494
+ Effect.provide(
2495
+ layerMockSpawner((args) => {
2496
+ const joined = args.join(" ");
2497
+ if (joined === "--version") return { stdout: "1.0.0\n", stderr: "", code: 0 };
2498
+ throw new Error(`Unexpected args: ${joined}`);
2499
+ }),
2500
+ ),
2501
+ ),
2502
+ );
2503
+
2504
it.effect.each([
2505
{ source: "inherited HTTPS endpoint", baseUrl: "https://proxy.example/api", overrides: [] },
2506
{