Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude follow-ups no longer fail in Auto on models without Auto #15687

MergedGigioxx(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/15687/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 92 additions and 3 deletions.

x
0 of 2 viewed, 2 left
75 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -4546,6 +4546,71 @@
+ it.effect.each(["claude-haiku-4-5-20251001", "claude-sonnet-4-6"])(
+ "renegotiates auto only when switching API models after fallback to default: %s",
+ (nextModel) =>
+ Effect.gen(function* () {
+ const harness = yield* makeWakeHarnessWithOptions({ freshQueueOnReopen: true });
+ const modelSelection = {
+ instanceId: ClaudeAdapterV2.CLAUDE_DEFAULT_INSTANCE_ID,
+ model: "claude-haiku-4-5-20251001",
+ };
+ const turnInput = {
+ threadId: harness.threadId,
+ providerThread: harness.providerThread,
+ now: yield* DateTime.now,
+ attachments: [],
+ modelSelection,
+ runtimePolicy: ProviderAdapter.ProviderAdapterV2RuntimePolicy.make({
+ ...CLAUDE_TEST_RUNTIME_POLICY,
+ runtimeMode: "auto",
+ }),
+ };
+ yield* harness.runtime.startTurn(
+ makeClaudeTestTurnInput({
+ ...turnInput,
+ attemptId: RunAttemptId.make("attempt-claude-auto-fallback-1"),
+ text: "Hello.",
+ }),