feat(HAI-001): handle optional title in engine components

This commit is contained in:
Dustin Byrne
2026-03-25 19:15:35 -04:00
parent 62dc06b2f1
commit f57b87f7d3
3 changed files with 6 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ export class TaskExecutor {
if (this.executing.has(task.id)) return; if (this.executing.has(task.id)) return;
this.executing.add(task.id); this.executing.add(task.id);
console.log(`[executor] Starting ${task.id}: ${task.title}`); console.log(`[executor] Starting ${task.id}: ${task.title || task.id}`);
try { try {
// Check dependencies // Check dependencies
@@ -210,7 +210,7 @@ function buildExecutionPrompt(task: TaskDetail): string {
## Task Info ## Task Info
- **ID:** ${task.id} - **ID:** ${task.id}
- **Title:** ${task.title} - **Title:** ${task.title || task.id}
${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""} ${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""}
## PROMPT.md ## PROMPT.md

View File

@@ -89,7 +89,7 @@ export class Scheduler {
// Dependencies met — move to in-progress // Dependencies met — move to in-progress
console.log( 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"); await this.store.moveTask(task.id, "in-progress");
this.options.onSchedule?.(task); this.options.onSchedule?.(task);

View File

@@ -96,7 +96,7 @@ export class TriageProcessor {
if (this.processing.has(task.id)) return; if (this.processing.has(task.id)) return;
this.processing.add(task.id); 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); this.options.onSpecifyStart?.(task);
@@ -143,8 +143,8 @@ function buildSpecificationPrompt(task: TaskDetail, promptPath: string): string
## Task ## Task
- **ID:** ${task.id} - **ID:** ${task.id}
- **Title:** ${task.title} - **Title:** ${task.title || task.id}
${task.description ? `- **Description:** ${task.description}` : ""} - **Description:** ${task.description}
${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""} ${task.dependencies.length > 0 ? `- **Dependencies:** ${task.dependencies.join(", ")}` : ""}
## Current rough prompt ## Current rough prompt