Explorar o código

test(subagent): cover Claude limit subtypes

pku-xht hai 1 mes
pai
achega
f76cce2fc2

+ 2 - 0
packages/subagent/subagent-claude-code/tests/subagent-claude-code.spec.ts

@@ -1077,6 +1077,8 @@ describe('run publication, cancellation, and settlement', () => {
     const cases: Array<readonly [ErrorSubtype, string]> = [
       ['error_during_execution', 'product-error'],
       ['error_max_turns', 'limit'],
+      ['error_max_budget_usd', 'limit'],
+      ['error_max_structured_output_retries', 'limit'],
     ]
     for (const [subtype, category] of cases) {
       const fixture = fakeRun([failure(subtype)])