@livx.cc/agentx 0.99.93 → 0.99.94

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
@@ -4997,7 +4997,8 @@ var Agent = class _Agent {
4997
4997
  // a child obeys the parent's allow/deny rules (else Task is a one-call bypass)
4998
4998
  tools: [...o.tools, ...this.injectedTools],
4999
4999
  systemPrompt: o.systemPrompt,
5000
- providerOptionsFor: o.providerOptionsFor ?? ((m) => modelProvider(m) === modelProvider(o.model) ? o.providerOptions : void 0)
5000
+ // A child never resumes the parent's own claude-code session (the host's `resume` link is the parent's).
5001
+ providerOptionsFor: o.providerOptionsFor ?? ((m) => modelProvider(m) === modelProvider(o.model) && o.providerOptions ? { ...o.providerOptions, resume: void 0, onClaudeCodeSession: void 0 } : void 0)
5001
5002
  };
5002
5003
  tools = [...tools, makeTaskTool(taskOpts), makeTaskBatchTool(taskOpts)];
5003
5004
  }