Frequent API errors with Claude #2756

Open
opened 2026-02-16 17:37:07 -05:00 by yindo · 8 comments
Owner

Originally created by @tylerlaprade on GitHub (Nov 10, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Multiple times I've hit this API error in a single session

OpenCode version

v1.0.55

Steps to reproduce

My connection is a little weak, but not terrible. For comparison, Claude Code rarely has any API errors, and when it does, the auto-retry always works.

Screenshot and/or share link

Image

Operating System

macOS

Terminal

Ghostty

Originally created by @tylerlaprade on GitHub (Nov 10, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Multiple times I've hit this API error in a single session ### OpenCode version v1.0.55 ### Steps to reproduce My connection is a little weak, but not terrible. For comparison, Claude Code rarely has any API errors, and when it does, the auto-retry always works. ### Screenshot and/or share link <img width="747" height="197" alt="Image" src="https://github.com/user-attachments/assets/7a2b580b-14c6-4414-9642-191edf642541" /> ### Operating System macOS ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:37:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 10, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3011: [Feature Request] Configurable Retry Mechanism via opencode.json - specifically addresses the need for retry mechanisms that OpenCode currently lacks
  • #452: More resilient retry policy for Amazon Bedrock rate limiting - mentions that Claude Code uses exponential backoff and works better, while OpenCode only tries 3 times
  • #833: handle LLM overload errors - discusses automatic retry for transient failures, similar to your weak connection scenario
  • #425: Claude session reset notifications - also compares OpenCode's error handling unfavorably to Claude Code

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 10, 2025): This issue might be a duplicate of existing issues. Please check: - #3011: [Feature Request] Configurable Retry Mechanism via opencode.json - specifically addresses the need for retry mechanisms that OpenCode currently lacks - #452: More resilient retry policy for Amazon Bedrock rate limiting - mentions that Claude Code uses exponential backoff and works better, while OpenCode only tries 3 times - #833: handle LLM overload errors - discusses automatic retry for transient failures, similar to your weak connection scenario - #425: Claude session reset notifications - also compares OpenCode's error handling unfavorably to Claude Code Feel free to ignore if none of these address your specific case.
Author
Owner

@tylerlaprade commented on GitHub (Nov 10, 2025):

Not sure if related, but this has happened twice already. And the second time, my session is borked even upon continuing.

@tylerlaprade commented on GitHub (Nov 10, 2025): Not sure if related, but this has happened twice already. And the second time, my session is borked even upon continuing.
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

@tylerlaprade if you continue to get "internal server errors" after continuing that is an anthropic issue, if you continue retrying it should go away, we do need to handle their retries better tho

@rekram1-node commented on GitHub (Nov 10, 2025): @tylerlaprade if you continue to get "internal server errors" after continuing that is an anthropic issue, if you continue retrying it should go away, we do need to handle their retries better tho
Author
Owner

@tylerlaprade commented on GitHub (Nov 10, 2025):

@rekram1-node , sorry, I meant to attach a screenshot. I'm not sure if this is due to API errors since the chat context is not visible and I can't get back into my session 😢

Image
@tylerlaprade commented on GitHub (Nov 10, 2025): @rekram1-node , sorry, I meant to attach a screenshot. I'm not sure if this is due to API errors since the chat context is not visible and I can't get back into my session 😢 <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/66a591f6-e40e-4b59-b18c-ef69b0c5f15b" />
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

@tylerlaprade there is some scroll bug unfortunately, and we are gonna fix that too, you should be able to scroll to get the content back into view

@rekram1-node commented on GitHub (Nov 10, 2025): @tylerlaprade there is some scroll bug unfortunately, and we are gonna fix that too, you should be able to scroll to get the content back into view
Author
Owner

@tylerlaprade commented on GitHub (Nov 10, 2025):

Scrolling as well as typing don't seem to be doing anything. After leaving it running for a while, I did see the menu screen of my game. I suspect it might be breaking the terminal rendering and input when my game modifies the terminal

@tylerlaprade commented on GitHub (Nov 10, 2025): Scrolling as well as typing don't seem to be doing anything. After leaving it running for a while, I did see the menu screen of my game. I suspect it might be breaking the terminal rendering and input when my game modifies the terminal
Author
Owner

@seupedro commented on GitHub (Nov 18, 2025):

Hi @tylerlaprade
Are you using it with claude code subscription? If yes, can you share your configuration? I'm looking for a way to use my subscription on it.

@seupedro commented on GitHub (Nov 18, 2025): Hi @tylerlaprade Are you using it with claude code subscription? If yes, can you share your configuration? I'm looking for a way to use my subscription on it.
Author
Owner

@rekram1-node commented on GitHub (Nov 18, 2025):

@seupedro opencode auth login then you can select your subscription there

@rekram1-node commented on GitHub (Nov 18, 2025): @seupedro `opencode auth login` then you can select your subscription there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2756