Skip to content

Comments

opencode env: TITO support, tunnel sync stop, add terminal-bench#874

Merged
willccbb merged 23 commits intomainfrom
daniel/opencode2
Feb 9, 2026
Merged

opencode env: TITO support, tunnel sync stop, add terminal-bench#874
willccbb merged 23 commits intomainfrom
daniel/opencode2

Conversation

@rasdani
Copy link
Contributor

@rasdani rasdani commented Feb 8, 2026

Description

  • supports TITO now by buffering/faking streaming
  • uses new sync_stop to reliably shut down tunnels
  • adds terminal-bench tasks and convenient env arg to run it

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


Note

Medium Risk
Moderate risk: changes the request/response interception and streaming behavior used during agent rollouts, which could affect tool-call/streaming compatibility and error handling; the rest is mostly additive task content and dependency/config updates.

Overview
Adds a large set of new opencode_harbor task assets (Dockerfiles/instructions/solutions/tests) for Terminal-Bench, and updates load_environment() to accept a dataset selector (terminal-bench or terminal-bench-sample) that expands into predefined task lists.

Updates the sandbox CLI interception flow to always fetch model responses via the non-streaming base path (to support TITO), and when an agent requests streaming it now synthesizes SSE chunks from the completed ChatCompletion via new synthesize_stream().

Tweaks infra/config: pre-commit excludes environments/*/tasks/ from linting, bumps prime-tunnel to >=0.1.1 and switches teardown to PrimeTunnel.sync_stop(), and adds an rl optional dependency set plus uv build hints for flash-attn.

Written by Cursor Bugbot for commit 1615b2b. This will update automatically on new commits. Configure here.

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@willccbb willccbb merged commit 5d863c0 into main Feb 9, 2026
6 checks passed
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.

4 participants