mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
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>