Skip to content

opencode envs#999

Draft
mikasenghaas wants to merge 49 commits intomainfrom
opencode-envs
Draft

opencode envs#999
mikasenghaas wants to merge 49 commits intomainfrom
opencode-envs

Conversation

@mikasenghaas
Copy link
Member

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes

mikasenghaas and others added 30 commits March 7, 2026 23:51
…ring building

- zmq_env_server: offload model_dump + msgpack.packb to asyncio.to_thread;
  serializing large rollout states (O(n_turns^2) token arrays) was blocking
  the event loop for seconds
- interception_utils: guard _log_request/_log_response with isEnabledFor(DEBUG)
  to skip O(n_messages) string building on every API call when debug is off

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
model_dump + msgpack.packb on large rollout states (O(n_turns^2) token
arrays) was blocking the event loop for seconds per completion.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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