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}`,
|
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({
|
||||||
|
|||||||
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user