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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user