Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): say when Claude Code serves a Fast request at standard speed #24657

Closedonly21mil(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/24657/headopened View on GitHub

Showing 2 changed files with 129 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
129 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -4915,6 +4915,135 @@
+ it.effect("tells the user once when Claude Code serves a Fast request at standard speed", () =>
+ Effect.scoped(
+ Effect.gen(function* () {
+ const harness = yield* makeWakeHarness;
+ const now = yield* DateTime.now;
+ const selection = (fastMode: boolean) =>
+ ({
+ instanceId: ClaudeAdapterV2.CLAUDE_DEFAULT_INSTANCE_ID,
+ model: "claude-opus-5-5",
+ options: [{ id: "fastMode", value: fastMode }],
+ }) satisfies ModelSelection;
+ const fastModeFields = (state: string, reason?: string) => ({
+ fast_mode_state: state,
+ ...(reason === undefined ? {} : { fast_mode_disabled_reason: reason }),
+ });
+ const turn = Effect.fnUntraced(function* (
+ ordinal: number,
+ fastMode: boolean,
+ frames: ReadonlyArray<SDKMessage>,
+ ) {
+ yield* harness.runtime.startTurn(
+ makeClaudeTestTurnInput({
+ threadId: harness.threadId,
+ providerThread: harness.providerThread,
+ now,
+ attemptId: RunAttemptId.make(`attempt-fast-mode:${ordinal}`),