The setTimeout in runSubagentTask was never cleared when childAgent.run() completed before the timeout. The dangling timer would later reject an unobserved promise, causing an unhandled promise rejection crash in Node.js v15+. Capture the timer and clear it in a .finally() block. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| channels | ||
| client | ||
| cron | ||
| heartbeat | ||
| hub | ||
| media | ||
| app-state.ts | ||
| index.ts | ||