Skip to content

fix(core): bound outbound image history - #39929

Merged
rekram1-node merged 2 commits into
v2from
image-handling
Jul 31, 2026
Merged

rekram1-node merged 2 commits into
v2from
image-handling

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • measure encoded image data in prepared model history
  • replace oldest images when payload crosses 25 MiB until 15 MiB remains
  • preserve image positions with a visible recovery marker for user and tool-result images

Testing

  • bun test test/session-model-request.test.ts from packages/core

@rekram1-node
rekram1-node merged commit 84dd56e into v2 Jul 31, 2026
6 of 7 checks passed
@rekram1-node
rekram1-node deleted the image-handling branch July 31, 2026 18:57
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant