feat(KB-057): complete Step 2 — useTerminal hook with history, SSE streaming, and command execution

This commit is contained in:
gsxdsm
2026-03-29 20:57:18 -07:00
parent c5b09e1cb1
commit 287ce1d6d2
6 changed files with 827 additions and 3 deletions

View File

@@ -227,7 +227,11 @@ export class TaskExecutor {
executorLog.log(`Found ${inProgress.length} orphaned in-progress task(s)`);
for (const task of inProgress) {
executorLog.log(`Resuming ${task.id}: ${task.title || task.description.slice(0, 60)}`);
await this.store.logEntry(task.id, "Resumed after engine restart");
try {
await this.store.logEntry(task.id, "Resumed after engine restart");
} catch (err) {
executorLog.error(`Failed to write resume log for ${task.id}:`, err);
}
this.execute(task).catch((err) =>
executorLog.error(`Failed to resume ${task.id}:`, err),
);