Repository navigation
Conversation
|
The following comment was made by an LLM, it may be inaccurate: |
There was a problem hiding this comment.
The docs entry looks fine. I didn't run anything because this only changes documentation. I checked that the row is well-formed and that the linked plugin repository exists. The public API is unchanged.
One thing for maintainers to decide: the description says Closes #48095. That issue asks for a built-in rolling window for images in OpenCode. Listing a third-party plugin in the ecosystem docs gives users a workaround, but it doesn't implement that request, so merging this would close the issue automatically. If the issue should stay open, it would be better to reference it without Closes.
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Relates to #48095
Supersedes #48096 (which was closed by automated cleanup)
Type of change
What does this PR do?
Adds
opencode-prune-imagesto the community plugins table inpackages/web/src/content/docs/ecosystem.mdx.Problem it solves
When running agent workflows with browser tools (Playwright, Chrome DevTools) or visual verification loops, chats accumulate dozens of screenshots. Upstream providers reject requests when image count limits are exceeded (e.g. 50 images max on Console, OpenAI, and Azure:
400 invalid_request_error: request contains 51 images, exceeding the maximum of 50 allowed per request).While OpenCode 2.0 bounds inline image bytes above 25 MiB via
boundImages(), it enforces no image-count limit and does not classify provider count errors as context overflow. An agent taking 51 small screenshots still bricks the session permanently.How opencode-prune-images solves it
/tmpcaptures and pasted base64 data are backed up to~/.cache/opencode/recent-images/(100 files FIFO) so screenshots don't vanish if/tmpis wiped.Repository: https://github.com/Sugamsss/opencode-prune-images
How did you verify your code works?
ecosystem.mdx.Checklist