Repository navigation
fix(agents): verify opencode 2.3.0 adapter against real CLI (#116) - #207
Open
Falguni-105 wants to merge 1 commit into
Open
Falguni-105 wants to merge 1 commit into
Falguni-105 wants to merge 1 commit into
Conversation
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.
Covers one adapter for #116 (the issue notes one well-verified adapter is a complete PR).
Verified against
@opencode/cli 2.3.0(Windows x64, 2026-11-28) with a newscripts/record_agent.pythat captures real stdout/stderr/exit code and refuses to save a transcript containing a key-shaped value.What the recordings found and this PR fixes
--pureand--dir(flag_drift.jsonrecords the CLI'sUnrecognized flagerrors). The argv now uses--standalone, with the working directory supplied byPopen(cwd=...).OPENCODE_CONFIG_CONTENT/OPENCODE_PERMISSIONenv vars. With those alone, a write tool actually createdproof.txt. The PR ships a v2permissionsarray (read/glob/grep only) viaOPENCODE_CONFIG;permission_denied.jsonrecords the same write being refused.describe_failure()now surfaces the CLI's message.Recordings (
tests/fixtures/agents/opencode/2.3.0/, replayed by tests):success(secret-scanning --depth quick on examples/, 46675 input / 3382 output tokens, cost 0),auth_failure,timeout,permission_denied,flag_drift.Docs: added the opencode row and a verification matrix with CLI version, date, verifier, install/auth/run/timeout/cost checks.
Test note: on this machine
tests/test_agents/test_api.pyhas 15 pre-existing failures becauselanggraphis not installed. All new/affected tests andtests/test_docs_consistency.pypass.