claude-code - 💡(How to fix) Fix First prompts after session start are swallowed and processed with up to ~30s delay (regression after recent update) [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#52800Fetched 2026-04-25 06:20:35
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1subscribed ×1

After a recent Claude Code update, the first 1–2 prompts in a new session are processed with a significant delay — up to ~30 seconds — or appear to be "swallowed" (no visible reaction for a while, then the response arrives). Subsequent prompts in the same session work normally with no noticeable delay.

Root Cause

After a recent Claude Code update, the first 1–2 prompts in a new session are processed with a significant delay — up to ~30 seconds — or appear to be "swallowed" (no visible reaction for a while, then the response arrives). Subsequent prompts in the same session work normally with no noticeable delay.

RAW_BUFFERClick to expand / collapse

Description

After a recent Claude Code update, the first 1–2 prompts in a new session are processed with a significant delay — up to ~30 seconds — or appear to be "swallowed" (no visible reaction for a while, then the response arrives). Subsequent prompts in the same session work normally with no noticeable delay.

Steps to reproduce

  1. Start claude in the terminal (new session).
  2. Wait for SessionStart hooks to finish loading.
  3. Send the first prompt.
  4. Observe a delay of up to ~30 seconds before the response starts.
  5. Send a second/third prompt — responds immediately, as before.

Expected behavior

The first prompt should be processed with the same latency as subsequent ones.

Actual behavior

The first prompt hangs for up to ~30 seconds, sometimes appearing to be fully swallowed (no indication that the request was received).

Environment

  • OS: macOS 15 (Darwin 24.6.0)
  • Shell: zsh
  • Regression started after a recent Claude Code update

Additional notes

Possibly related to cache initialization, plugin loading, or SessionStart hooks.

extent analysis

TL;DR

Investigate and potentially optimize the SessionStart hooks or cache initialization process to reduce the delay in processing the first prompt in a new session.

Guidance

  • Review the SessionStart hooks to ensure they are not causing unnecessary delays or blocking the prompt processing.
  • Check the cache initialization process to see if it can be optimized or run in parallel with the prompt processing.
  • Verify if any recently updated plugins or dependencies are contributing to the delay.
  • Test the behavior with different prompts or sessions to see if the delay is consistent.

Example

No specific code snippet can be provided without more information about the Claude Code update or the SessionStart hooks.

Notes

The exact cause of the delay is uncertain, and further investigation is needed to determine the root cause. The issue may be related to the recent Claude Code update, plugin loading, or cache initialization.

Recommendation

Apply a workaround by optimizing the SessionStart hooks or cache initialization process, as upgrading to a fixed version is not explicitly mentioned as an option. This approach allows for a targeted fix without waiting for a potential update.

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…

FAQ

Expected behavior

The first prompt should be processed with the same latency as subsequent ones.

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 First prompts after session start are swallowed and processed with up to ~30s delay (regression after recent update) [1 comments, 2 participants]