Repository navigation
Conversation
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Small update from my side: since opening this, the plugin fixed pruned V1 tool attachments breaking downstream shapes (entries now leave the array and their cards join the tool output), covered by a new regression test. Suite is 17 pass with strict typecheck clean. Happy to rebase or adjust the entry wording whenever convenient. |
ce75c8e to
e500dd6
Compare
|
@rekram1-node Would you have a moment to review this ecosystem addition when convenient? It adds opencode-prune-images, an in-memory context manager that keeps sessions from bricking on provider image caps (#47487). Fully rebased on latest dev with all checks green. Happy to adjust anything. |
|
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. |
|
Superseded by #55058 with fresh rebase on latest dev. |
Issue for this PR
Closes #48095
Type of change
What does this PR do?
Adds
opencode-prune-imagesto the community plugins table inpackages/web/src/content/docs/ecosystem.mdx.During long agent runs, especially visual QA loops with Playwright or Chrome
DevTools, chats can collect many screenshots. The plugin changes only the
outgoing context before provider dispatch. It keeps the newest images within a
count budget (7 by default) and a cumulative estimated wire Base64 budget (16
MiB by default). Older images become compact text cards with the path, nearby
context, and best-effort recall guidance. During compaction, recognized images
are converted to cards so raw image data is not passed to the compaction
context. Persisted SQLite history is not rewritten.
Repository:
https://github.com/Sugamsss/opencode-prune-images
The plugin reduces payload pressure but cannot guarantee that every provider or
gateway will accept every request. Provider limits and the rest of the request
still apply. The repository is source-only and is not currently published to
npm.
How did you verify your code works?
Verified that the markdown table format matches the existing entries in
ecosystem.mdx. The plugin repository has 17 passing tests and a passing strictTypeScript check. The tests cover image count and payload budgets, nested tool
results, V1 tool attachment pruning, rolling cache behavior, compaction,
malformed input, duplicate cards, and plugin hook registration.
Screenshots / recordings
N/A (documentation addition)
Checklist