fix(core): reuse durable event codecs - #43778
opencode-agent[bot] wants to merge 1 commit into
Conversation
Co-authored-by: Hona <10430890+Hona@users.noreply.github.com>
— AI code review (automated) |
, adapted) Effect Schema codecs for durable events are compiled once per definition and cached in a module-level WeakMap (dynamically-created definitions are never retained by the cache). decodeSerializedEvent, the durable commit encode path, and replay decoding all share it. Upstream anomalyco#43778 by app/opencode-agent (AI-authored; credited in README prose only). README: ported row for the codec cache, customs rows for the payload budget and LSP document LRU with knob tables.
|
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. |
Summary
Verification
bun test test/session-tool-progress.test.tsfrompackages/core(1 passed)git diff --checkRequested by: @rekram1-node (Aiden via Slack)