Repository navigation
Conversation
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
OpenCode agent sessions now retain the harness trajectory after a single activation and return it when the session closes. This preserves decision boundaries and reasoning/tool output for downstream trajectory consumers.
The adapter also accepts existing mounted-installer settings: an installer script with its cached binary, plus an optional musl binary. Setup forwards the installer's existing argument contract, checks the resulting OpenCode version, and publishes the executable atomically. Invalid combinations fail before sandbox connection. An optional positive
opencode_model_call_timeoutconfigures the provider request timeout in milliseconds; its default remains disabled.This is a focused compatibility follow-up to #4747; a separate issue is unnecessary. The no-activation close receipt and omission of
cleanup_confirmedfor single-shot sessions remain compatible with that PR.Validation
Reviewed final commit
ca78f1536f0f7bd774a1cbd703cfc475a8f16545. Python 3.13.14, Linux. The test launcher selected this checkout and asserted core/OpenCode import paths before callingpytest.mainwith these exact arguments:pre-commit run --all-filesandgit diff --checkpassed. Both new default-timeout single-shot trajectory cases fail on pristine base0d0f6c0534fea26e4f73bd5fef9209c220727368because the close response omitstrajectory.This is a server-only diff. Full core/sandbox coverage and the isolated changed-server CI command are still CI gates; the targeted runs above do not claim those results.
Rollouts
Rollout evidence is not included in this public PR. Keep this PR in draft pending full CI and maintainer review.
Compatibility and benchmark impact
Settings are optional, with existing defaults preserved. No scoring or verifier code changes. Trajectory-derived statistics can change because single-shot decisions now retain the harness's boundaries. Benchmark score parity is not established by the unit tests.
Checklist
pre-commit run --all-filespasses.