技能 2026-09-17 14:17 UTC
neuroarxivlatest
版本【latest】由提交人 info 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:Fix two CLI-blocking bugs: SDK teardown error and arXiv 429 handling。解决了已知运行时异常与边界错误,提升系统稳定性。
Commit提交信息原文
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>