--resume with full -p prompt returns empty response in v2.1.143
Resolved 💬 3 comments Opened May 17, 2026 by itnico Closed May 20, 2026
Description
v2.1.143: when --resume is combined with -p containing full history, Claude Code returns empty content immediately. No errors — just finish_reason:stop with empty delta.
Steps to Reproduce
- Create session: claude -p "search for X" --session-id <uuid> --output-format stream-json --verbose
- Resume with full history: claude --resume <uuid> -p "original_question + assistant_reply + followup" --output-format stream-json --verbose
- T2 returns only: {"delta":{},"finish_reason":"stop"} data:[DONE]
Workaround
- Downgrade to v2.1.138, or
- Only pass the latest user message in -p on resume (not full history)
Environment
- Windows 11, v2.1.143
- Model: deepseek-v4-pro via new-api proxy
- Spawned via: asyncio.create_subprocess_exec + pythonw.exe
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗