feat(HAI-001): handle optional title in engine components
This commit is contained in:
@@ -72,7 +72,7 @@ export class TaskExecutor {
|
||||
if (this.executing.has(task.id)) return;
|
||||
this.executing.add(task.id);
|
||||
|
||||
console.log(`[executor] Starting ${task.id}: ${task.title}`);
|
||||
console.log(`[executor] Starting ${task.id}: ${task.title || task.id}`);
|
||||
|
||||
try {
|
||||
// Check dependencies
|
||||
@@ -210,7 +210,7 @@ function buildExecutionPrompt(task: TaskDetail): string {
|
||||
|
||||
## Task Info
|
||||
- **ID:** ${task.id}
|
||||
- **Title:** ${task.title}
|
||||
- **Title:** ${task.title || task.id}
|
||||
${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""}
|
||||
|
||||
## PROMPT.md
|
||||
|
||||
@@ -89,7 +89,7 @@ export class Scheduler {
|
||||
|
||||
// Dependencies met — move to in-progress
|
||||
console.log(
|
||||
`[scheduler] Starting ${task.id}: ${task.title} (deps satisfied)`,
|
||||
`[scheduler] Starting ${task.id}: ${task.title || task.id} (deps satisfied)`,
|
||||
);
|
||||
await this.store.moveTask(task.id, "in-progress");
|
||||
this.options.onSchedule?.(task);
|
||||
|
||||
@@ -96,7 +96,7 @@ export class TriageProcessor {
|
||||
if (this.processing.has(task.id)) return;
|
||||
this.processing.add(task.id);
|
||||
|
||||
console.log(`[triage] Specifying ${task.id}: ${task.title}`);
|
||||
console.log(`[triage] Specifying ${task.id}: ${task.title || task.id}`);
|
||||
this.options.onSpecifyStart?.(task);
|
||||
|
||||
|
||||
@@ -143,8 +143,8 @@ function buildSpecificationPrompt(task: TaskDetail, promptPath: string): string
|
||||
|
||||
## Task
|
||||
- **ID:** ${task.id}
|
||||
- **Title:** ${task.title}
|
||||
${task.description ? `- **Description:** ${task.description}` : ""}
|
||||
- **Title:** ${task.title || task.id}
|
||||
- **Description:** ${task.description}
|
||||
${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""}
|
||||
|
||||
## Current rough prompt
|
||||
|
||||
Reference in New Issue
Block a user