Skip to content

Request entity too large error #6574

Closed

Description

@Clock-Drift

Description

Recently hitting a 'request entity too large' response when using any model via Copilot. I haven't hit my usage limits (edu subscription) and the codebase is quite small. Sometimes happens when introducing screenshots, but even after removing these the issue persists. Often requires multiple session restarts or reworking from scratch.

OpenCode version

1.0.218

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

MacOS 26.2

Terminal

Ghostty

Activity

  1. fredlahde commented on Jan 2, 2026

    @fredlahde

    +1 I am also facing this, since this evening.

    It surfaced on a session with many screenshots, on a project without screenshots i did not hit this today, yet.

  2. sin4ch commented on Jan 5, 2026

    @sin4ch
    Contributor

    Same thing just happened to me.

    Didn't think it was a copilot thing. @Clock-Drift

  3. tbrandenburg commented on Jan 8, 2026

    @tbrandenburg

    Same here with claude-sonnet-4.

    It happens with a big Playwright Testing Suite and several screenshots.

  4. sin4ch commented on Jan 8, 2026

    @sin4ch
    Contributor

    It has stopped for me. I think Copilot is having issues, or this is just their rate limiting.

    Some models disappeared recently from my Copilot account, only to come back this morning. I'm not sure what's going on at Microsoft/GitHub.

  5. chindris-mihai-alexandru commented on Jan 10, 2026

    @chindris-mihai-alexandru

    It happens to me too on v1.1.12. Reproducible with multiple Copilot models after accumulating a few images in the conversation.

  6. sin4ch commented on Jan 10, 2026

    @sin4ch
    Contributor

    seems these issues might soon be a thing of the past as copilot auth will be official per this post!

  7. aalquwayfili commented on Jan 15, 2026

    @aalquwayfili

    I'm on v1.1.21. Still having this issue

    Using co-pilot and Claude 4.5 Opus

  8. shihabshaharia commented on Jan 22, 2026

    @shihabshaharia

    Same issue on the latest version on an identical setup
    open code Version 1.1.31 (1.1.31)

  9. mattiamichini-design commented on Jan 30, 2026

    @mattiamichini-design

    Same problem here with version v1.1.42 and Opus 4.5 via Github Copilot (auth)

  10. GarauGarau commented on Jan 30, 2026

    @GarauGarau

    Same problem with version v1.1.42 and GPT 5.2 on CLI.

  11. WizoDev commented on Feb 3, 2026

    @WizoDev

    Same problem with version v1.1.48 and Opus 4.5 ( Github copilot )

  12. wh01s17 commented on Feb 3, 2026

    @wh01s17

    Same problem with version v1.1.49 and Opus 4.5 (Github copilot) :c

  13. PrinceD96 commented on Feb 6, 2026

    @PrinceD96

    Only way I've been able to recover from this is with /undo as long as your last prompt is what caused the issue. For example, this happened to me after adding/tagging an image.

  14. erf commented on Feb 16, 2026

    @erf

    Happened to me now (version 1.2.5) when trying to read large image files.

  15. nazgulcan commented on Feb 19, 2026

    @nazgulcan

    persists on any model on Copilot on OpenCode

  16. ZauJulio commented on Feb 19, 2026

    @ZauJulio

    Same thing here

  17. raymelon commented on Feb 23, 2026

    @raymelon

    Experienced the same issue after a Copilot model attempted to read a screenshot.

    Switching models saves the session. However, switching back to the Copilot model will just yield the same error.

    Forking the session then compacting the fork didn't work either.

    OpenCode 1.2.6 on any Copilot model

  18. kyriakossdr commented on Feb 25, 2026

    @kyriakossdr

    I managed to resolve this by compressing the images. After reducing them from ~2MB to ~0.5MB, it was able to read both images.

    OpenCode 1.2.10 on Claude Sonnet 4.5 Copilot.

  19. fujunchao commented on Feb 27, 2026

    @fujunchao

    I also encountered this issue. When using GitHub Copilot Opus 4.6 and testing web pages with the MCP tool Chrome DevTools, this problem occurs after taking several screenshots.The version of OpenCode is 1.2.15.

  20. unk1911 commented on Mar 2, 2026

    @unk1911

    same problem here, github copilot opus 4.6 with opencode 1.2.15. seems like there's no way to back out of this..

  21. raymelon commented on Mar 4, 2026

    @raymelon

    I managed to resolve this by compressing the images. After reducing them from ~2MB to ~0.5MB, it was able to read both images.

    OpenCode 1.2.10 on Claude Sonnet 4.5 Copilot.

    @kyriakossdr This is smart. As long as the reference (image path) is the same, there should be no issue? I will try.

  22. kargnas commented on Mar 28, 2026

    @kargnas

    This can fix those issues:

    opencode.json

      "plugin": [
        "opencode-large-image-optimizer@latest"
      ]
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions