ai-sdk-provider-claude-code 3.3.5 → 3.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1846,18 +1846,19 @@ var ClaudeCodeLanguageModel = class _ClaudeCodeLanguageModel {
1846
1846
  id: toolId
1847
1847
  });
1848
1848
  state.inputClosed = true;
1849
- state.lastSerializedInput = accumulatedInput;
1849
+ const effectiveInput = accumulatedInput || state.lastSerializedInput || "";
1850
+ state.lastSerializedInput = effectiveInput;
1850
1851
  if (!state.callEmitted) {
1851
1852
  controller.enqueue({
1852
1853
  type: "tool-call",
1853
1854
  toolCallId: toolId,
1854
1855
  toolName: state.name,
1855
- input: accumulatedInput,
1856
+ input: effectiveInput,
1856
1857
  providerExecuted: true,
1857
1858
  dynamic: true,
1858
1859
  providerMetadata: {
1859
1860
  "claude-code": {
1860
- rawInput: accumulatedInput,
1861
+ rawInput: effectiveInput,
1861
1862
  parentToolCallId: state.parentToolCallId ?? null
1862
1863
  }
1863
1864
  }