Skip to content

Interrupting long session then resuming results in Internal Server Error #6653

Closed as not planned

Description

@bcardarella

Description

I have the following extensions:

  • oh my opencode
  • dynamic context pruning

If am running a long session and I see something I want to change I'll <esc><esc> to interrupt then redirect the agent and continue. Most of the time within a minute or two I'll get Internal Server Error. I'll need to /undo multiple times and go back to a good chat history state and find a way to continue forward.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jan 2, 2026

    @github-actions
    Contributor

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

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

  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  3. removed
    bugSomething isn't working
    on May 3, 2026
  4. ludvax commented on Jul 11, 2026

    @ludvax

    Hi @bcardarella and everybody,

    The cause: a known bug on PROVIDER like NVIDIA's end regarding MODEL like GLM for example.
    The PROVIDER API returns an "Internal Server Error" when the request exceeds *K tokens, even though the model is advertised as having a 1M-token context window. For example, tThis bug was reported on the NVIDIA developer forum in early July and remains unresolved to this day; multiple users have confirmed the same issue, yet no official fix has been released.

    So, how fix this issue ?
    In the sessions of OpenCode, put "/compact" to reduce the context use.
    And after that you can put "continue" to continue the session.

    Have a good day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions