somratpro Claude Haiku 4.5 commited on
Commit
4a30806
Β·
1 Parent(s): 3ea6622

Prevent crash from unhandled RangeError in periodic heartbeat

Browse files

The startup heartbeat recovery catches the stack overflow and logs it.
But the periodic heartbeat (30s) fires the same firstBlockedChainFinding
recursion in an async context with no try/catch β†’ unhandled rejection
β†’ process.exit(1). --unhandled-rejections=none silences these instead
of crashing the process.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. start.sh +1 -1
start.sh CHANGED
@@ -214,7 +214,7 @@ trap cleanup SIGTERM SIGINT
214
 
215
  # ── Launch Paperclip ──────────────────────────────────────────────────────────
216
  echo "Starting Paperclip..."
217
- node --import ./server/node_modules/tsx/dist/loader.mjs server/dist/index.js &
218
  PAPERCLIP_PID=$!
219
 
220
  # Wait for API ready (max 90s)
 
214
 
215
  # ── Launch Paperclip ──────────────────────────────────────────────────────────
216
  echo "Starting Paperclip..."
217
+ node --unhandled-rejections=none --import ./server/node_modules/tsx/dist/loader.mjs server/dist/index.js &
218
  PAPERCLIP_PID=$!
219
 
220
  # Wait for API ready (max 90s)