fix(runner): parse tasks from app-specific workspaceRoot instead of repoRoot

This commit is contained in:
2026-06-03 14:52:22 -07:00
parent 41143fc1fd
commit 71bea9103f
2 changed files with 6 additions and 6 deletions

View File

@@ -536,7 +536,7 @@ async function runSessionAgent(config, task, ctx, opts) {
text: `Agent started offline delegation orchestrator in ${opts.appPath}`, text: `Agent started offline delegation orchestrator in ${opts.appPath}`,
}); });
const repoRoot = opts.repoRoot ?? ctx.workspaceRoot; const repoRoot = opts.repoRoot ?? ctx.workspaceRoot;
let tasks = parseTaskItems(repoRoot); let tasks = parseTaskItems(ctx.workspaceRoot);
if (tasks.length === 0) { if (tasks.length === 0) {
await emit({ await emit({
ts: now(), ts: now(),
@@ -544,8 +544,8 @@ async function runSessionAgent(config, task, ctx, opts) {
text: "🤖 [Orchestrator] No active tasks backlog found on disk. Analyzing prompt to plan atomic execution backlog...", text: "🤖 [Orchestrator] No active tasks backlog found on disk. Analyzing prompt to plan atomic execution backlog...",
}); });
try { try {
await generateBacklogFromPrompt(task, repoRoot); await generateBacklogFromPrompt(task, ctx.workspaceRoot);
tasks = parseTaskItems(repoRoot); tasks = parseTaskItems(ctx.workspaceRoot);
} }
catch (err) { catch (err) {
await emit({ await emit({

View File

@@ -676,7 +676,7 @@ export async function runSessionAgent(
const repoRoot = opts.repoRoot ?? ctx.workspaceRoot; const repoRoot = opts.repoRoot ?? ctx.workspaceRoot;
let tasks = parseTaskItems(repoRoot); let tasks = parseTaskItems(ctx.workspaceRoot);
if (tasks.length === 0) { if (tasks.length === 0) {
await emit({ await emit({
ts: now(), ts: now(),
@@ -684,8 +684,8 @@ export async function runSessionAgent(
text: "🤖 [Orchestrator] No active tasks backlog found on disk. Analyzing prompt to plan atomic execution backlog...", text: "🤖 [Orchestrator] No active tasks backlog found on disk. Analyzing prompt to plan atomic execution backlog...",
}); });
try { try {
await generateBacklogFromPrompt(task, repoRoot); await generateBacklogFromPrompt(task, ctx.workspaceRoot);
tasks = parseTaskItems(repoRoot); tasks = parseTaskItems(ctx.workspaceRoot);
} catch (err: any) { } catch (err: any) {
await emit({ await emit({
ts: now(), ts: now(),