@standardagents/builder 0.11.10 → 0.11.11

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
@@ -2712,7 +2712,9 @@ var init_ToolExecutor = __esm({
2712
2712
  agentConfig: promptAgent,
2713
2713
  storage: state.storage,
2714
2714
  env: state.env,
2715
- threadId: `${state.threadId}-prompt-${call.id}`,
2715
+ // Use root thread ID - sub-prompts share the parent's thread
2716
+ // Messages are namespaced by depth and prompt, not by threadId
2717
+ threadId: state.rootState?.threadId || state.threadId,
2716
2718
  thread: state.thread,
2717
2719
  // Pass through parent thread instance and metadata
2718
2720
  context: {