feat(FN-689): sync steps from PROMPT.md in getTask

- Add step synchronization when loading task from database
- Sync steps array from PROMPT.md file to keep task metadata in sync
- Add test coverage for getTask step sync behavior
- Remove terminal session functionality (useTerminalSessions hook and tests)
- Clean up unused terminal-related components and CSS
This commit is contained in:
gsxdsm
2026-04-02 10:25:37 -07:00
parent 9f1347f1f4
commit 78bff07c69
2 changed files with 30 additions and 0 deletions

View File

@@ -835,6 +835,11 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
throw new Error(`Task ${id} not found`);
}
// Sync steps from PROMPT.md if task.steps is empty
if (task.steps.length === 0) {
task.steps = await this.parseStepsFromPrompt(id);
}
let prompt = "";
const promptPath = join(this.taskDir(id), "PROMPT.md");
if (existsSync(promptPath)) {