Files
PaperClipAI/server
Priya RamanandPaperclip 6cf3794a13 fix(server): close the postgres client before embedded-postgres teardown
The native Codex vertical-slice suite stopped the embedded database
before ending its own postgres.js client. Stopping the server tears the
TCP connection down under the still-open client, and a batched write the
driver scheduled via setImmediate can then fire after the socket
dropped -- an unhandled "Cannot read properties of null (reading
'write')" that failed the run even though every test passed. Close the
client first, matching the fix already applied to the cross-issue-cap
postgres suite.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-08-27 00:02:31 +00:00
..