fix(#85): claude_session retry על כשלים חולפים של claude -p #94
Reference in New Issue
Block a user
Delete Branch "worktree-style-acquisition-mvp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
שורש הבעיה (אובחן)
#85 דווח כ"nested claude -p exits 1". אבחון אמפירי הראה שזה לא nesting:
claude -pמקונן מ-bash הצליח (exit 0), פרומפט קטן דרך claude_session הצליח, ואותו פרומפט גדול (70K) שנכשל קודם — הצליח בריצה חוזרת (281s, TTFT 131s). כלומר כשל חולף ב-exit מהיר + stderr ריק על פרומפטים גדולים/איטיים (CEOwrite_interim_draft,learning_loopdistillation).התיקון
query()עוטף את spawn+communicate ב-לולאת retry (MAX_RETRIES=3, backoff לינארי5s*attempt).FileNotFoundErrorו-timeout נשארים דטרמיניסטיים (ללא retry);empty-responseמטופל גם הוא כ-transient.אימות e2e
distillation על 1130-25 רץ בהצלחה → pair=
analyzed(9 שינויים, 6 style_method, 10 ביטויים, 33.8% diff). זה גם פותר אתwrite_interim_draftשל ה-CEO (אותו מסלול).פריסה: claude_session רץ מקומית (MCP/agents) — לא בקונטיינר. MCP טוען per-run אחרי sync ל-main.
🤖 Generated with Claude Code
9d2536a667toe096c51037