Request Entity Too Large not caught before trying to read large files #6524

Open
opened 2026-02-16 18:04:28 -05:00 by yindo · 2 comments
Owner

Originally created by @JosXa on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image

We should prevent the LLM from reading files that will cause "Request Entity Too Large" errors, or at least create the ability to recover from this situation gracefully. For example, restarting the conversation from a "known good" point in the dialog would be helpful - a "revert for assistant-messages". Otherwise, this entire conversation is lost and I need to start over from my last message, which was ages ago.

MCP used: https://github.com/remorses/playwriter

Plugins

No response

OpenCode version

1.1.23

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @JosXa on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="872" height="349" alt="Image" src="https://github.com/user-attachments/assets/ad1ab236-6865-4ec3-bdb7-c20528dbbb57" /> We should prevent the LLM from reading files that will cause "Request Entity Too Large" errors, or at least create the ability to recover from this situation gracefully. For example, restarting the conversation from a "known good" point in the dialog would be helpful - a "revert for assistant-messages". Otherwise, this entire conversation is lost and I need to start over from **my** last message, which was ages ago. MCP used: https://github.com/remorses/playwriter ### Plugins _No response_ ### OpenCode version 1.1.23 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:04:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

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

  • #6574: Request entity too large error

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #6574: Request entity too large error Feel free to ignore if this doesn't address your specific case.
Author
Owner

@roryeckel commented on GitHub (Feb 11, 2026):

Same here, my temporary workaround is just making the playwright browser window smaller, but this obviously isn't scalable lol
Edit: I'm using GitHub Copilot provider

For @playwright/mcp users, this can be done with --viewport-size 1280x720

@roryeckel commented on GitHub (Feb 11, 2026): Same here, my temporary workaround is just making the playwright browser window smaller, but this obviously isn't scalable lol Edit: I'm using GitHub Copilot provider For @playwright/mcp users, this can be done with `--viewport-size 1280x720`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6524