@standardagents/builder 0.11.11 → 0.11.12

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.
@@ -2910,7 +2910,8 @@ ${errorLines.join("\n")}`);
2910
2910
  const toolConfig = parentToolConfigs.find(
2911
2911
  (t) => typeof t === "string" ? t === agentName : t.name === agentName
2912
2912
  );
2913
- state.pendingHandoff = {
2913
+ const targetState = state.rootState || state;
2914
+ targetState.pendingHandoff = {
2914
2915
  agentId: agentName,
2915
2916
  args: args2,
2916
2917
  toolConfig: typeof toolConfig === "object" ? {