@yourgpt/copilot-sdk 2.1.8 → 2.5.0

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.
@@ -2290,8 +2290,7 @@ ${this.dynamicContext}`.trim() : this.config.systemPrompt;
2290
2290
  (tc) => !pendingIds.has(tc?.id ?? "")
2291
2291
  ))
2292
2292
  continue;
2293
- if (msg.role === "tool" && msg.tool_call_id && pendingIds.has(msg.tool_call_id))
2294
- continue;
2293
+ if (msg.role === "tool" && msg.tool_call_id) continue;
2295
2294
  messagesToInsert.push({
2296
2295
  id: generateMessageId(),
2297
2296
  role: msg.role,
@@ -5954,5 +5953,5 @@ function useMCPTools(config) {
5954
5953
  }
5955
5954
 
5956
5955
  export { AbstractAgentLoop, AbstractChat, CopilotProvider, MessageHistoryContext, MessageTree, ReactChatState, SkillProvider, createReactChatState, defaultMessageHistoryConfig, initialAgentLoopState, isCompactionMarker, keepToolPairsAtomic, toDisplayMessage, toLLMMessage, toLLMMessages, useAIContext, useAIContexts, useCopilot, useMCPClient, useMCPTools, useMessageHistory, useMessageHistoryContext, useSkillContext, useTool, useTools };
5957
- //# sourceMappingURL=chunk-ISOMZAYN.js.map
5958
- //# sourceMappingURL=chunk-ISOMZAYN.js.map
5956
+ //# sourceMappingURL=chunk-SOS25KUI.js.map
5957
+ //# sourceMappingURL=chunk-SOS25KUI.js.map