fix(04-01): resolve type errors and update integration tests for wakeup API

- Fix SQLInputValue type in listWakeupRequests params
- Fix leftover pendingWakes reference in worker-service.ts
- Fix RunStatus 'completed' -> 'succeeded' in atomic-checkout test
- Update autonomous-chain.spec.ts to use new wakeup lifecycle API
This commit is contained in:
ZacharyZhang-NY committed 2026-03-26 19:00:51 -04:00
1 parent f647a4fdf1
commit 4d47712669
4 files changed
+53 -41

No files matched your search

+1 -1
View File
@@ -411,7 +411,7 @@ export function createWorkerService({
}
// Self-wake with circuit breaker to prevent infinite loops
if (pendingWakes.length === 0 && !isQuitting() && !destroyed) {
if (queuedWakes.length === 0 && !isQuitting() && !destroyed) {
try {
const actionableTasks = db.listAgentTasks(run.agentId, run.companyId, ["todo", "in_progress"]);
if (actionableTasks.length > 0) {