claude-code - 💡(How to fix) Fix --resume with full -p prompt returns empty response in v2.1.143

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

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.

Root Cause

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.

Fix Action

Workaround

  • Downgrade to v2.1.138, or
  • Only pass the latest user message in -p on resume (not full history)
RAW_BUFFERClick to expand / collapse

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

  1. Create session: claude -p "search for X" --session-id <uuid> --output-format stream-json --verbose
  2. Resume with full history: claude --resume <uuid> -p "original_question + assistant_reply + followup" --output-format stream-json --verbose
  3. 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix --resume with full -p prompt returns empty response in v2.1.143