agents-relay 2.0.258 → 2.0.259
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/reconciler.js +2 -1
- package/package.json +1 -1
package/dist/reconciler.js
CHANGED
|
@@ -446,7 +446,8 @@ export class Reconciler extends ReconcilerReviewBase {
|
|
|
446
446
|
let executionContext;
|
|
447
447
|
try {
|
|
448
448
|
const role = isFinalReviewAgent(task.agentName) ? 'reviewer' : task.agentName === 'troubleshooter' ? 'troubleshooter' : task.parentTaskId ? 'nested-worker' : 'worker';
|
|
449
|
-
const
|
|
449
|
+
const graphChild = Boolean(task.dagNode) || job.tasks.some(parent => parent.id === task.parentTaskId && Boolean(parent.dagNode));
|
|
450
|
+
const projectPath = graphChild && job.graphStartContext?.projectPath ? job.graphStartContext.projectPath : this.options.projectPathForJob ? await this.options.projectPathForJob(job, task) : task.routing?.cwd ?? process.cwd();
|
|
450
451
|
executionContext = await this.resolvedContext(job, task, role, projectPath);
|
|
451
452
|
}
|
|
452
453
|
catch (error) {
|