Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a Claude wake during a usage limit no longer drops auto-resume #49628

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

Showing 2 changed files with 91 additions and 4 deletions (loading 1).

x
0 of 2 viewed, 2 left
91 additions and 4 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -14176,9 +14176,13 @@
- it.effect.each([true])(
- "carries a rejected wake rate limit into the continuation failure (event=%s)",
- (standaloneEvent) =>
+ it.effect.each([
+ { standaloneEvent: true, beforeReplay: "nothing" },
+ { standaloneEvent: true, beforeReplay: "allowed" },
+ { standaloneEvent: true, beforeReplay: "allowed then rejected" },
+ ] as const)(
+ "carries a rejected wake rate limit into the continuation failure (event=$standaloneEvent, before replay: $beforeReplay)",
+ ({ standaloneEvent, beforeReplay }) =>
Effect.gen(function* () {
const harness = yield* makeWakeHarness;
const now = yield* DateTime.now;
@@ -14195,6 +14199,15 @@
yield* Queue.offer(harness.sdkMessages, wakeTaskStarted);
+ yield* Queue.offer(
+ harness.sdkMessages,
+ claudeSdkFrame({
+ ...wakeTaskStarted,
+ task_id: "blimitwake",
+ tool_use_id: "toolu_limit_wake_second",
+ uuid: "00000000-0000-4000-8000-000000000634",
+ }),