claude-code - 💡(How to fix) Fix [BUG] Tool result could not be submitted. The request may have expired or the connection was interrupted. Refresh the page to continue. [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#52100Fetched 2026-04-23 07:36:36
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1unlabeled ×1

Error Message

When I enter anything into chat i get this message every few seconds over and over again. I refresh the session but it starts up over and over again. Error message is "Tool result could not be submitted. The request may have expired or the connection was interrupted. Refresh the page to continue."

Error Messages/Logs

Code Example

Tool result could not be submitted. The request may have expired or the connection was interrupted. Refresh the page to continue.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I enter anything into chat i get this message every few seconds over and over again. I refresh the session but it starts up over and over again. Error message is "Tool result could not be submitted. The request may have expired or the connection was interrupted. Refresh the page to continue."

What Should Happen?

This message should not appear.

Error Messages/Logs

Tool result could not be submitted. The request may have expired or the connection was interrupted. Refresh the page to continue.

Steps to Reproduce

Just run a chat session.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Opus 4.7 Adaptive

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue might be resolved by investigating and addressing potential connection stability or request expiration issues between the client and the Anthropic API.

Guidance

  • Verify the network connection stability to ensure it's not causing intermittent interruptions that could lead to request expirations.
  • Check the Anthropic API documentation for any specific requirements or recommendations regarding request timeouts and connection handling.
  • Consider implementing a retry mechanism in the chat session to handle temporary connection issues or expired requests gracefully.
  • Review the Opus 4.7 Adaptive version release notes and known issues for any mentions of similar problems or patches.

Example

No specific code example can be provided without more details on the implementation, but a generic approach to handling retries might involve a loop that attempts to resend a request upon failure, with appropriate backoff strategies to avoid overwhelming the server.

Notes

The provided information does not specify the exact cause of the issue, which could be due to various factors including but not limited to network instability, server-side issues, or client-side bugs. Further investigation into the Anthropic API's behavior and the client's implementation is necessary.

Recommendation

Apply workaround: Given the information available, implementing a workaround such as a retry mechanism seems prudent to mitigate the issue until a more definitive fix can be identified and applied.

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