fix(server): update Claude Agent SDK to 0.3.260 #9135
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits into
main fromrefs/pull/9135/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 1464Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1336,3 +1361,21 @@13361361 });133713621363+/**1364+ * terminal_reason values that mean the turn died rather than finished, even1365+ * when the CLI stamps the result subtype as success (exhausted API retries,1366+ * repeated malformed tool calls, budget or structured-output exhaustion).1367+ */1368+const FAILED_TERMINAL_REASONS: ReadonlySet<NonNullable<SDKResultMessage["terminal_reason"]>> =1369+ new Set([1370+ "api_error",1371+ "malformed_tool_use_exhausted",1372+ "budget_exhausted",1373+ "structured_output_retry_exhausted",1374+ "tool_deferred_unavailable",1375+ "turn_setup_failed",1376+ ]);1377+13381378 function turnStatusFromResult(result: SDKResultMessage): ProviderRuntimeTurnStatus {1379+ if (result.terminal_reason !== undefined && FAILED_TERMINAL_REASONS.has(result.terminal_reason)) {1380+ return "failed";1381+ }
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 1447Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1354,3 +1379,17 @@13541379 return buildUserMessage({ sdkContent });13551380 });135613811382+/**1383+ * terminal_reason values that mean the turn died rather than finished, even1384+ * when the CLI stamps the result subtype as success (exhausted API retries,1385+ * repeated malformed tool calls, budget or structured-output exhaustion).1386+ */1387+const FAILED_TERMINAL_REASONS: ReadonlySet<NonNullable<SDKResultMessage["terminal_reason"]>> =1388+ new Set([1389+ "api_error",1390+ "malformed_tool_use_exhausted",1391+ "budget_exhausted",1392+ "structured_output_retry_exhausted",1393+ "tool_deferred_unavailable",1394+ "turn_setup_failed",1395+ ]);
t3dotgg(GitHub profile, opens in a new tab) changed the title
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
01f3e50· PR result:d00caa1· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.