Add SSE `retry:` directive to suggest a 2-minute reconnect delay when the worker enters idle sleep and drops silent EventSource streams. This prevents clients from immediately reconnecting and re-waking the container, reducing unnecessary resource usage. Update SSE encoding to support the `retry` field and add tests for correct behavior. Improve idle disconnect logging for better observability. |
||
|---|---|---|
| .. | ||
| index.ts | ||
| orchestrator.ts | ||
| sse.ts | ||
| state-machine.ts | ||
| types.ts | ||