pi-websocket-auto-continue0.1.3
Pi extension that automatically continues after a settled WebSocket transport error.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-websocket-auto-continue
Automatically send "continue" as user input after a WebSocket error, idle timeout, or connection closure (close codes 1000 and 1012).
It records the result at agent_end and waits for agent_settled before acting. This allows pi to finish any:
- built-in retry
- recovery after compaction
- queued continuation
It checks the final assistant message. stopReason must be "error", and errorMessage must match one of:
- Exactly
WebSocket error. WebSocket idle timeout after <digits>ms, for exampleWebSocket idle timeout after 60000ms.- Exactly
WebSocket closed 1000(normal closure). - Exactly
WebSocket closed 1012(service restart).
Aborted runs and other errors do not trigger continuation.
When a supported message matches, it sends "continue" as user input:
Install
pi install npm:pi-websocket-auto-continue