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