Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/benchflow/agents/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class AgentConfig:
skill_paths=["$HOME/.opencode/skills"],
home_dirs=[".opencode"],
install_cmd=(
_js_agent_install("opencode", "opencode-ai")
_js_agent_install("opencode", "opencode-ai@1.17.20")
Comment thread
bingran-you marked this conversation as resolved.
+ " && "
+ _opencode_family_proxy_wrapper_install(
"opencode", ".config/opencode/opencode.json"
Expand Down
8 changes: 8 additions & 0 deletions tests/test_registry_invariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ def test_js_agent_install_respects_explicit_npm_package_specs():
assert "some-agent@latest" in default_cmd


def test_opencode_install_is_pinned_for_reproducible_harness_runs():
"""Guards PR #931 against silently changing OpenCode between eval stages."""
install_cmd = AGENTS["opencode"].install_cmd

assert "opencode-ai@1.17.20" in install_cmd
assert "opencode-ai@latest" not in install_cmd


def test_gemini_cli_install_is_pinned():
"""Guards v0.5-integration@27752fa against Daytona installing moving latest."""
install_cmd = AGENTS["gemini"].install_cmd
Expand Down
Loading