SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-09-17 14:17 UTC

neuroarxivlatest

Version [latest] committed by info. Update Category: Bug Fixes & Stability Improvements. Commit details: Fix two CLI-blocking bugs: SDK teardown error and arXiv 429 handling. This update resolves known runtime errors and enhances system reliability.

info 7d59a92 UditAkhourii/neuroarxiv

CommitRaw commit message

Fix two CLI-blocking bugs: SDK teardown error and arXiv 429 handling

Every `neuroarxiv "<problem>"` run currently dies before printing a
recommendation. Two independent causes:

1. `callLLM` drained the Agent SDK iterator to completion. The child
   Claude Code process exits non-zero at teardown *after* emitting a
   successful `result` message, and the SDK surfaces that as
   `Error: Claude Code process exited with code 1` — so every run failed
   on its first LLM call despite the query itself succeeding. Break on
   the `result` message instead.

2. The arXiv 429 retry reused the AbortController whose timeout had
   already fired, so the retry aborted instantly. arXiv answers 429 only
   after holding the connection open for 15-45s, which also blew the 20s
   timeout on the first attempt. Each attempt now gets its own timeout
   (60s), and both 429 and a timeout are treated as the same back-off
   signal across 4 attempts (5s/15s/45s) before failing with a message
   that says what happened instead of a bare DOMException.

Existing tests still pass (16/16).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>