fix(runner): parse tasks from app-specific workspaceRoot instead of repoRoot
This commit is contained in:
@@ -536,7 +536,7 @@ async function runSessionAgent(config, task, ctx, opts) {
|
||||
text: `Agent started offline delegation orchestrator in ${opts.appPath}`,
|
||||
});
|
||||
const repoRoot = opts.repoRoot ?? ctx.workspaceRoot;
|
||||
let tasks = parseTaskItems(repoRoot);
|
||||
let tasks = parseTaskItems(ctx.workspaceRoot);
|
||||
if (tasks.length === 0) {
|
||||
await emit({
|
||||
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...",
|
||||
});
|
||||
try {
|
||||
await generateBacklogFromPrompt(task, repoRoot);
|
||||
tasks = parseTaskItems(repoRoot);
|
||||
await generateBacklogFromPrompt(task, ctx.workspaceRoot);
|
||||
tasks = parseTaskItems(ctx.workspaceRoot);
|
||||
}
|
||||
catch (err) {
|
||||
await emit({
|
||||
|
||||
@@ -676,7 +676,7 @@ export async function runSessionAgent(
|
||||
|
||||
const repoRoot = opts.repoRoot ?? ctx.workspaceRoot;
|
||||
|
||||
let tasks = parseTaskItems(repoRoot);
|
||||
let tasks = parseTaskItems(ctx.workspaceRoot);
|
||||
if (tasks.length === 0) {
|
||||
await emit({
|
||||
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...",
|
||||
});
|
||||
try {
|
||||
await generateBacklogFromPrompt(task, repoRoot);
|
||||
tasks = parseTaskItems(repoRoot);
|
||||
await generateBacklogFromPrompt(task, ctx.workspaceRoot);
|
||||
tasks = parseTaskItems(ctx.workspaceRoot);
|
||||
} catch (err: any) {
|
||||
await emit({
|
||||
ts: now(),
|
||||
|
||||
Reference in New Issue
Block a user