旧实现在 poll loop 里反复 communicate(timeout=0.5) 违反 subprocess API 假设, 配合 setsid bash -c block-buffered stdout 在多 chunk 输出时 chunk 静默丢失, LLM 调 run_python / shell 拿到空 [exit 0] 8 字符,误判 paper_server 不可用。 改单次 communicate(timeout=full) + 侧线程 daemon poll cancel + 入口 inline 快路径。回归测试用真子进程 bash sleep 多次 echo 锁死,17/17 PASS。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_disk_quota.py | ||
| test_executor_docker.py | ||
| test_load_skill.py | ||
| test_sandbox_check.py | ||
| test_static_vendor.py | ||