reactbridge-sdk 0.2.13 → 0.2.14

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.esm.js CHANGED
@@ -130,7 +130,11 @@ class ReactBridgeAPI {
130
130
  // Pass the FULL ToolResult object to the orchestrator, not just the summary
131
131
  // The orchestrator needs: status, result_items, and detailed_data for sequential execution
132
132
  const toolResultJson = JSON.stringify(toolResult, null, 2);
133
- const request = Object.assign(Object.assign({}, originalRequest), { sessionId, query: `[Tool Result] ${toolResultJson}` });
133
+ const request = Object.assign(Object.assign({}, originalRequest), { sessionId, query: `[Tool Result] ${toolResultJson}`,
134
+ // CRITICAL: Remove document/image from subsequent requests
135
+ // If we keep them, the orchestrator will reprocess the PDF on every tool result
136
+ // This causes sequential execution to restart instead of continuing
137
+ document: undefined, image: undefined, modalityHint: undefined });
134
138
  return this.sendMessage(request);
135
139
  });
136
140
  }