diff --git a/.github/opencode-version.txt b/.github/opencode-version.txt index 83d5e73f00..2a4feaf54c 100644 --- a/.github/opencode-version.txt +++ b/.github/opencode-version.txt @@ -1 +1 @@ -1.19.5 +1.19.6 diff --git a/benchmarks/aft-search/slice-descriptors/ci-bump-opencode-1.19.6.json b/benchmarks/aft-search/slice-descriptors/ci-bump-opencode-1.19.6.json new file mode 100644 index 0000000000..10f9f9c4fc --- /dev/null +++ b/benchmarks/aft-search/slice-descriptors/ci-bump-opencode-1.19.6.json @@ -0,0 +1,6 @@ +{ + "slice_class": "non_ranking", + "targeted_mechanism": "none", + "kind": "harness", + "fixtures": ["harness-goldens"] +} diff --git a/tests/docker/opencode2/contract/host1-edit-family-gate.json b/tests/docker/opencode2/contract/host1-edit-family-gate.json index 4af02a66bc..a2caa80e23 100644 --- a/tests/docker/opencode2/contract/host1-edit-family-gate.json +++ b/tests/docker/opencode2/contract/host1-edit-family-gate.json @@ -1,13 +1,13 @@ { "schema_version": 1, - "run_id": "oc1-1.19.5-20261116T154212279Z-t7-parity", - "observed_run_id": "oc1-1.19.5-20261116T154212279Z-t7-parity", - "host_version": "1.19.5", + "run_id": "oc1-1.19.6-20261123T174921686Z-t7-parity", + "observed_run_id": "oc1-1.19.6-20261123T174921686Z-t7-parity", + "host_version": "1.19.6", "host": "opencode1", "platform": "linux-x64", - "transcript": "probe/host1-edit-family-gate-1.19.5.txt", + "transcript": "probe/host1-edit-family-gate-1.19.6.txt", "executable": "opencode-ai/bin/opencode.exe", - "executable_sha256": "7df4e4136301f16589b0f30bf91a61380fca5f8ef22dd36570f5ebe1d4ec802c", + "executable_sha256": "aab0a58cd7fc5a1f17495b76c08e79989d331653d8b63156aca2f6e9e36d1173", "registry_function": "l(\"ToolRegistry.tools\")", "selector_source": "let oe=V.modelID.includes(\"gpt-\")&&!V.modelID.includes(\"oss\")&&!V.modelID.includes(\"gpt-4\");if(G.id===ln.id)return oe;if(G.id===Bt.id||G.id===Zt.id)return!oe;", "tool_selectors": [ @@ -30,5 +30,5 @@ "v2_default": "openai/mock-model" }, "reading": "The selector is true for a model id containing gpt- but neither oss nor gpt-4. True publishes apply_patch and withholds edit and write; false publishes edit and write and withholds apply_patch. The rule is unchanged from OpenCode 1.19.3 to 1.19.5; only the registry wrapper and minified symbols changed. No provider participates in the edit-family decision. V1 parity still uses the captured mock/mock-model, so its apply_patch leg remains excluded. V2 apply_patch scenarios explicitly select openai/gpt-5-mock while other scenarios keep openai/mock-model by default. V2 disables the host patch plugin and AFT supplies the corresponding per-model gate.", - "capture_source_sha": "75b22b343e10020aacc91081112493b7ba8c5263" + "capture_source_sha": "d1cddbd231e294d279d49e6cc16040fb2051abba" } diff --git a/tests/docker/opencode2/contract/host1-provider-config.json b/tests/docker/opencode2/contract/host1-provider-config.json index d98b377f75..c3ba74f4da 100644 --- a/tests/docker/opencode2/contract/host1-provider-config.json +++ b/tests/docker/opencode2/contract/host1-provider-config.json @@ -1,11 +1,11 @@ { "schema_version": 1, - "run_id": "oc1-1.19.5-20261116T154212279Z-t7-parity", - "observed_run_id": "oc1-1.19.5-20261116T154212279Z-t7-parity", - "host_version": "1.19.5", + "run_id": "oc1-1.19.6-20261123T174921686Z-t7-parity", + "observed_run_id": "oc1-1.19.6-20261123T174921686Z-t7-parity", + "host_version": "1.19.6", "host": "opencode1", "platform": "linux-x64", - "transcript": "probe/host1-provider-config-1.19.5.txt", + "transcript": "probe/host1-provider-config-1.19.6.txt", "provider_config": { "mock": { "name": "Deterministic aimock", @@ -27,7 +27,7 @@ "name": "Deterministic aimock", "npm": "@ai-sdk/openai-compatible", "options": { - "baseURL": "http://127.0.0.1:44409/v1", + "baseURL": "http://127.0.0.1:39981/v1", "apiKey": "{env:OPENAI_API_KEY}" }, "models": { @@ -52,7 +52,7 @@ "OPENAI_API_KEY": "sk-opencode2-harness" }, "observed_session": { - "session_id": "ses_e1af9c018ffeBjKV0ngqtIBgd4", + "session_id": "ses_df678e5baffe6nOBiMOfdIHoTw", "model": { "id": "mock-model", "providerID": "mock" @@ -88,5 +88,5 @@ ], "required_for": "the V1 leg of every T7 parity row", "missing_contract_code": "contract_uncaptured:host1_provider_config", - "capture_source_sha": "75b22b343e10020aacc91081112493b7ba8c5263" + "capture_source_sha": "d1cddbd231e294d279d49e6cc16040fb2051abba" } diff --git a/tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.5.txt b/tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.6.txt similarity index 76% rename from tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.5.txt rename to tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.6.txt index d72e90df34..f3f6f6a734 100644 --- a/tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.5.txt +++ b/tests/docker/opencode2/contract/probe/host1-edit-family-gate-1.19.6.txt @@ -1,8 +1,8 @@ OpenCode 1 edit-family selector capture -run_id: oc1-1.19.5-20261116T154212279Z-t7-parity -source_sha: 75b22b343e10020aacc91081112493b7ba8c5263 -binary: opencode-ai@1.19.5 (linux-x64) -binary_sha256: 7df4e4136301f16589b0f30bf91a61380fca5f8ef22dd36570f5ebe1d4ec802c +run_id: oc1-1.19.6-20261123T174921686Z-t7-parity +source_sha: d1cddbd231e294d279d49e6cc16040fb2051abba +binary: opencode-ai@1.19.6 (linux-x64) +binary_sha256: aab0a58cd7fc5a1f17495b76c08e79989d331653d8b63156aca2f6e9e36d1173 isolation: throwaway HOME and all XDG roots; no host service started for the bundle inspection bundle: opencode-ai/bin/opencode.exe (temporary prefix ) diff --git a/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.5.txt b/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.5.txt deleted file mode 100644 index fd3a0908c8..0000000000 --- a/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.5.txt +++ /dev/null @@ -1,177 +0,0 @@ -OpenCode 1 provider configuration probe for the T7 parity leg -run_id: oc1-1.19.5-20261116T154212279Z-t7-parity -source_sha: 75b22b343e10020aacc91081112493b7ba8c5263 -binary: opencode-ai@1.19.5 (linux-x64) -isolation: throwaway HOME, TMPDIR, XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, XDG_RUNTIME_DIR; OPENCODE_DB=opencode2.db; OPENCODE_DISABLE_DEFAULT_PLUGINS=true -service: foreground opencode run; private XDG state and process cleanup prevent a managed background service from using user state -provider mock: @copilotkit/aimock@1.24.0 on loopback; fake OpenAI key only - -1. V2 providers/package/settings shape -config key: providers; model: openai/mock-model -config: -{ - "providers": { - "openai": { - "name": "Deterministic aimock", - "package": "@opencode/ai/providers/openai-compatible", - "settings": { - "baseURL": "http://127.0.0.1:/v1", - "apiKey": "{env:OPENAI_API_KEY}" - }, - "models": { - "mock-model": { - "name": "Mock Model" - } - } - } - } -} -exit: 1; mock requests: 0; paths: [] -diagnostic: configuration compatibility diagnostic path=["providers"] kind=unsupported action="Omitted native setting that cannot be represented in V1" -host error: ProviderModelNotFoundError: Model not found: openai/mock-model. -host output: -{"type":"error","timestamp":1794843751054,"sessionID":"ses_e1af9d0beffecGtKHZ34Ury6XV","error":{"name":"UnknownError","data":{"message":"Unexpected server error. Check server logs for details.","ref":"err_c90349e1"}}} - -timestamp=2026-11-16T15:42:29.744Z level=INFO run=078abcf2 message="creating instance" directory=/probe-0/project -timestamp=2026-11-16T15:42:29.747Z level=INFO run=078abcf2 message=fromDirectory directory=/probe-0/project -timestamp=2026-11-16T15:42:29.813Z level=INFO run=078abcf2 message=bootstrapping directory=/probe-0/project -timestamp=2026-11-16T15:42:29.819Z level=INFO run=078abcf2 message=loading path=/probe-0/xdg-config/opencode/config.json -timestamp=2026-11-16T15:42:29.820Z level=INFO run=078abcf2 message=loading path=/probe-0/xdg-config/opencode/opencode.json -timestamp=2026-11-16T15:42:29.825Z level=WARN run=078abcf2 message="configuration compatibility diagnostic" source=/probe-0/xdg-config/opencode/opencode.json path="[\"providers\"]" kind=unsupported action="Omitted native setting that cannot be represented in V1" -timestamp=2026-11-16T15:42:29.828Z level=INFO run=078abcf2 message=loading path=/probe-0/xdg-config/opencode/opencode.jsonc -timestamp=2026-11-16T15:42:30.057Z level=INFO run=078abcf2 message="all LSPs are disabled" -timestamp=2026-11-16T15:42:30.057Z level=INFO run=078abcf2 message="all formatters are disabled" -timestamp=2026-11-16T15:42:30.058Z level=INFO run=078abcf2 message=init -timestamp=2026-11-16T15:42:30.209Z level=INFO run=078abcf2 message=created id=ses_e1af9d0beffecGtKHZ34Ury6XV slug=calm-forest version=1.19.5 projectID=global directory=/probe-0/project path=w/acct-01KXJJHK4V6DB42W1YAN2XD9QN/6d75dd56448a4a9c1d405648c0d390018f662152c7f80fd93ff183f432d3f3df/aft/target/scratch/aft-opencode1-contract-65jNuK/probe-0/project workspaceID=undefined parentID=undefined title="New session - 2026-11-16T15:42:30.209Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1794843750209 time.updated=1794843750209 -timestamp=2026-11-16T15:42:30.219Z level=INFO run=078abcf2 message="event connected" -timestamp=2026-11-16T15:42:30.294Z level=INFO run=078abcf2 message=loop session.id=ses_e1af9d0beffecGtKHZ34Ury6XV step=0 -timestamp=2026-11-16T15:42:31.050Z level=ERROR run=078abcf2 message=failed ref=err_c90349e1 error="ProviderModelNotFoundError: Model not found: openai/mock-model." cause="ProviderModelNotFoundError: Model not found: openai/mock-model.\n at (/$bunfs/root/chunk-vhbb8cv6.js:2:64699)\n at SessionPrompt.getModel (/$bunfs/root/chunk-8vxdhsjf.js:50:11031)\n at SessionPrompt.getModel (definition) (/$bunfs/root/chunk-8vxdhsjf.js:50:831)\n at SessionPrompt.run (/$bunfs/root/chunk-8vxdhsjf.js:50:14576)\n at SessionPrompt.run (definition) (/$bunfs/root/chunk-8vxdhsjf.js:50:10099)\n at SessionRunState.ensureRunning (/$bunfs/root/chunk-8vxdhsjf.js:50:14545)\n at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-8vxdhsjf.js:2:6839)\n at SessionPrompt.loop (/$bunfs/root/chunk-8vxdhsjf.js:50:9849)\n at SessionPrompt.loop (definition) (/$bunfs/root/chunk-8vxdhsjf.js:50:14481)\n at SessionPrompt.prompt (/$bunfs/root/chunk-hb03pxng.js:6:11717)\n at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-8vxdhsjf.js:50:9462)" -timestamp=2026-11-16T15:42:31.051Z level=INFO run=078abcf2 message=stream providerID=openai modelID=gpt-5.4-nano-flex session.id=ses_e1af9d0beffecGtKHZ34Ury6XV small=true agent=title mode=primary -timestamp=2026-11-16T15:42:31.055Z level=INFO run=078abcf2 message="disposing instance" directory=/probe-0/project -2. V1 provider key with OpenAI API alias -config key: provider; model: openai/mock-model -config: -{ - "provider": { - "openai": { - "name": "Deterministic aimock", - "api": "openai", - "options": { - "baseURL": "http://127.0.0.1:/v1", - "apiKey": "{env:OPENAI_API_KEY}" - }, - "models": { - "mock-model": { - "name": "Mock Model" - } - } - } - } -} -exit: 0; mock requests: 2; paths: ["/v1/responses","/v1/responses"] -diagnostic: none -host error: none -host output: -{"type":"step_start","timestamp":1794843753348,"sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","part":{"id":"prt_1e5063b72001z6CfExpM8Tq3m3","messageID":"msg_1e506392d001GlOYuxlFsFrkBr","sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","type":"step-start"}} -{"type":"text","timestamp":1794843753348,"sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","part":{"id":"prt_1e5063b750018z1n5JJJ34jvmP","messageID":"msg_1e506392d001GlOYuxlFsFrkBr","sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","type":"text","text":"Scenario complete","time":{"start":1794843753333,"end":1794843753336},"metadata":{"openai":{"itemId":"msg-_5AWWodUhFKh7Wm7"}}}} -{"type":"step_finish","timestamp":1794843753348,"sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","part":{"id":"prt_1e5063b7b001yAgOBObmmo73d6","reason":"stop","messageID":"msg_1e506392d001GlOYuxlFsFrkBr","sessionID":"ses_e1af9c90dffe1FG6uMAKjzqbSW","type":"step-finish","tokens":{"total":0,"input":0,"output":0,"reasoning":0,"cache":{"write":0,"read":0}},"cost":0}} - -timestamp=2026-11-16T15:42:31.727Z level=INFO run=8e2ea3f9 message="creating instance" directory=/probe-1/project -timestamp=2026-11-16T15:42:31.729Z level=INFO run=8e2ea3f9 message=fromDirectory directory=/probe-1/project -timestamp=2026-11-16T15:42:31.766Z level=INFO run=8e2ea3f9 message=bootstrapping directory=/probe-1/project -timestamp=2026-11-16T15:42:31.773Z level=INFO run=8e2ea3f9 message=loading path=/probe-1/xdg-config/opencode/config.json -timestamp=2026-11-16T15:42:31.774Z level=INFO run=8e2ea3f9 message=loading path=/probe-1/xdg-config/opencode/opencode.json -timestamp=2026-11-16T15:42:31.781Z level=INFO run=8e2ea3f9 message=loading path=/probe-1/xdg-config/opencode/opencode.jsonc -timestamp=2026-11-16T15:42:32.024Z level=INFO run=8e2ea3f9 message="all LSPs are disabled" -timestamp=2026-11-16T15:42:32.024Z level=INFO run=8e2ea3f9 message="all formatters are disabled" -timestamp=2026-11-16T15:42:32.025Z level=INFO run=8e2ea3f9 message=init -timestamp=2026-11-16T15:42:32.179Z level=INFO run=8e2ea3f9 message=created id=ses_e1af9c90dffe1FG6uMAKjzqbSW slug=silent-comet version=1.19.5 projectID=global directory=/probe-1/project path=w/acct-01KXJJHK4V6DB42W1YAN2XD9QN/6d75dd56448a4a9c1d405648c0d390018f662152c7f80fd93ff183f432d3f3df/aft/target/scratch/aft-opencode1-contract-65jNuK/probe-1/project workspaceID=undefined parentID=undefined title="New session - 2026-11-16T15:42:32.179Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1794843752179 time.updated=1794843752179 -timestamp=2026-11-16T15:42:32.191Z level=INFO run=8e2ea3f9 message="event connected" -timestamp=2026-11-16T15:42:32.237Z level=INFO run=8e2ea3f9 message=loop session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW step=0 -timestamp=2026-11-16T15:42:32.758Z level=INFO run=8e2ea3f9 message="shell tool using shell" shell=/bin/bash -timestamp=2026-11-16T15:42:32.764Z level=INFO run=8e2ea3f9 message=init count=1 -timestamp=2026-11-16T15:42:32.770Z level=INFO run=8e2ea3f9 message=stream providerID=openai modelID=gpt-5.4-nano-flex session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW small=true agent=title mode=primary -timestamp=2026-11-16T15:42:32.777Z level=INFO run=8e2ea3f9 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=openai llm.model=gpt-5.4-nano-flex -timestamp=2026-11-16T15:42:32.889Z level=INFO run=8e2ea3f9 message="watcher backend" directory=/probe-1/project platform=linux backend=inotify -timestamp=2026-11-16T15:42:32.895Z level=INFO run=8e2ea3f9 message="project copy refresh started" projectID=global -timestamp=2026-11-16T15:42:32.897Z level=INFO run=8e2ea3f9 message="project copy refresh done" projectID=global updated=[] removed=[] -timestamp=2026-11-16T15:42:32.928Z level=INFO run=8e2ea3f9 message="booting location services" directory=/probe-1/project workspaceID=undefined -timestamp=2026-11-16T15:42:33.319Z level=INFO run=8e2ea3f9 message=process session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW messageID=msg_1e506392d001GlOYuxlFsFrkBr -timestamp=2026-11-16T15:42:33.320Z level=INFO run=8e2ea3f9 message=stream providerID=openai modelID=mock-model session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW small=false agent=build mode=primary -timestamp=2026-11-16T15:42:33.322Z level=INFO run=8e2ea3f9 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=openai llm.model=mock-model -timestamp=2026-11-16T15:42:33.344Z level=INFO run=8e2ea3f9 message=loop session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW step=1 -timestamp=2026-11-16T15:42:33.345Z level=INFO run=8e2ea3f9 message="exiting loop" session.id=ses_e1af9c90dffe1FG6uMAKjzqbSW -timestamp=2026-11-16T15:42:33.349Z level=INFO run=8e2ea3f9 message="disposing instance" directory=/probe-1/project -3. V1 npm OpenAI-compatible provider -config key: provider; model: mock/mock-model -config: -{ - "provider": { - "mock": { - "name": "Deterministic aimock", - "npm": "@ai-sdk/openai-compatible", - "options": { - "baseURL": "http://127.0.0.1:/v1", - "apiKey": "{env:OPENAI_API_KEY}" - }, - "models": { - "mock-model": { - "name": "Mock Model" - } - } - } - } -} -exit: 0; mock requests: 2; paths: ["/v1/chat/completions","/v1/chat/completions"] -diagnostic: none -host error: none -host output: -{"type":"step_start","timestamp":1794843755348,"sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","part":{"id":"prt_1e5064346001qOvs4EqEXugHqA","messageID":"msg_1e5064189001nHDX4ThVxuGzNS","sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","type":"step-start"}} -{"type":"text","timestamp":1794843755348,"sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","part":{"id":"prt_1e5064348001ye5kJm5pu1l7jb","messageID":"msg_1e5064189001nHDX4ThVxuGzNS","sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","type":"text","text":"Scenario complete","time":{"start":1794843755336,"end":1794843755338}}} -{"type":"step_finish","timestamp":1794843755348,"sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","part":{"id":"prt_1e506434c001Xn3Tn2HuY5ZXUE","reason":"stop","messageID":"msg_1e5064189001nHDX4ThVxuGzNS","sessionID":"ses_e1af9c018ffeBjKV0ngqtIBgd4","type":"step-finish","tokens":{"input":0,"output":0,"reasoning":0,"cache":{"write":0,"read":0}},"cost":0}} - -timestamp=2026-11-16T15:42:34.104Z level=INFO run=b308f38d message="creating instance" directory=/probe-2/project -timestamp=2026-11-16T15:42:34.105Z level=INFO run=b308f38d message=fromDirectory directory=/probe-2/project -timestamp=2026-11-16T15:42:34.140Z level=INFO run=b308f38d message=bootstrapping directory=/probe-2/project -timestamp=2026-11-16T15:42:34.146Z level=INFO run=b308f38d message=loading path=/probe-2/xdg-config/opencode/config.json -timestamp=2026-11-16T15:42:34.147Z level=INFO run=b308f38d message=loading path=/probe-2/xdg-config/opencode/opencode.json -timestamp=2026-11-16T15:42:34.152Z level=INFO run=b308f38d message=loading path=/probe-2/xdg-config/opencode/opencode.jsonc -timestamp=2026-11-16T15:42:34.360Z level=INFO run=b308f38d message="all LSPs are disabled" -timestamp=2026-11-16T15:42:34.361Z level=INFO run=b308f38d message="all formatters are disabled" -timestamp=2026-11-16T15:42:34.361Z level=INFO run=b308f38d message=init -timestamp=2026-11-16T15:42:34.471Z level=INFO run=b308f38d message=created id=ses_e1af9c018ffeBjKV0ngqtIBgd4 slug=eager-orchid version=1.19.5 projectID=global directory=/probe-2/project path=w/acct-01KXJJHK4V6DB42W1YAN2XD9QN/6d75dd56448a4a9c1d405648c0d390018f662152c7f80fd93ff183f432d3f3df/aft/target/scratch/aft-opencode1-contract-65jNuK/probe-2/project workspaceID=undefined parentID=undefined title="New session - 2026-11-16T15:42:34.471Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1794843754471 time.updated=1794843754471 -timestamp=2026-11-16T15:42:34.482Z level=INFO run=b308f38d message="event connected" -timestamp=2026-11-16T15:42:34.518Z level=INFO run=b308f38d message=loop session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 step=0 -timestamp=2026-11-16T15:42:34.896Z level=INFO run=b308f38d message="shell tool using shell" shell=/bin/bash -timestamp=2026-11-16T15:42:34.903Z level=INFO run=b308f38d message=init count=1 -timestamp=2026-11-16T15:42:34.909Z level=INFO run=b308f38d message=stream providerID=mock modelID=mock-model session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 small=true agent=title mode=primary -timestamp=2026-11-16T15:42:34.914Z level=INFO run=b308f38d message="llm runtime selected" llm.runtime=ai-sdk llm.provider=mock llm.model=mock-model -timestamp=2026-11-16T15:42:34.988Z level=INFO run=b308f38d message="watcher backend" directory=/probe-2/project platform=linux backend=inotify -timestamp=2026-11-16T15:42:34.995Z level=INFO run=b308f38d message="project copy refresh started" projectID=global -timestamp=2026-11-16T15:42:34.996Z level=INFO run=b308f38d message="project copy refresh done" projectID=global updated=[] removed=[] -timestamp=2026-11-16T15:42:35.008Z level=INFO run=b308f38d message="booting location services" directory=/probe-2/project workspaceID=undefined -timestamp=2026-11-16T15:42:35.324Z level=INFO run=b308f38d message=process session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 messageID=msg_1e5064189001nHDX4ThVxuGzNS -timestamp=2026-11-16T15:42:35.326Z level=INFO run=b308f38d message=stream providerID=mock modelID=mock-model session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 small=false agent=build mode=primary -timestamp=2026-11-16T15:42:35.328Z level=INFO run=b308f38d message="llm runtime selected" llm.runtime=ai-sdk llm.provider=mock llm.model=mock-model -timestamp=2026-11-16T15:42:35.345Z level=INFO run=b308f38d message=loop session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 step=1 -timestamp=2026-11-16T15:42:35.346Z level=INFO run=b308f38d message="exiting loop" session.id=ses_e1af9c018ffeBjKV0ngqtIBgd4 -timestamp=2026-11-16T15:42:35.349Z level=INFO run=b308f38d message="disposing instance" directory=/probe-2/project - -Accepted provider config: { - "provider": { - "mock": { - "name": "Deterministic aimock", - "npm": "@ai-sdk/openai-compatible", - "options": { - "baseURL": "http://127.0.0.1:/v1", - "apiKey": "{env:OPENAI_API_KEY}" - }, - "models": { - "mock-model": { - "name": "Mock Model" - } - } - } - } -} -The contract uses {{AIMOCK_BASE_URL}} so each private harness scenario can materialize its own local endpoint. diff --git a/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.6.txt b/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.6.txt new file mode 100644 index 0000000000..874eb5b54b --- /dev/null +++ b/tests/docker/opencode2/contract/probe/host1-provider-config-1.19.6.txt @@ -0,0 +1,177 @@ +OpenCode 1 provider configuration probe for the T7 parity leg +run_id: oc1-1.19.6-20261123T174921686Z-t7-parity +source_sha: d1cddbd231e294d279d49e6cc16040fb2051abba +binary: opencode-ai@1.19.6 (linux-x64) +isolation: throwaway HOME, TMPDIR, XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, XDG_RUNTIME_DIR; OPENCODE_DB=opencode2.db; OPENCODE_DISABLE_DEFAULT_PLUGINS=true +service: foreground opencode run; private XDG state and process cleanup prevent a managed background service from using user state +provider mock: @copilotkit/aimock@1.24.0 on loopback; fake OpenAI key only + +1. V2 providers/package/settings shape +config key: providers; model: openai/mock-model +config: +{ + "providers": { + "openai": { + "name": "Deterministic aimock", + "package": "@opencode/ai/providers/openai-compatible", + "settings": { + "baseURL": "http://127.0.0.1:/v1", + "apiKey": "{env:OPENAI_API_KEY}" + }, + "models": { + "mock-model": { + "name": "Mock Model" + } + } + } + } +} +exit: 1; mock requests: 0; paths: [] +diagnostic: configuration compatibility diagnostic path=["providers"] kind=unsupported action="Omitted native setting that cannot be represented in V1" +host error: ProviderModelNotFoundError: Model not found: openai/mock-model. +host output: +{"type":"error","timestamp":1795456175778,"sessionID":"ses_df678f3f1ffeP7ngQP4NffmWo3","error":{"name":"UnknownError","data":{"message":"Unexpected server error. Check server logs for details.","ref":"err_a6e0da07"}}} + +timestamp=2026-11-23T17:49:34.830Z level=INFO run=f9ceabe0 message="creating instance" directory=/probe-0/project +timestamp=2026-11-23T17:49:34.831Z level=INFO run=f9ceabe0 message=fromDirectory directory=/probe-0/project +timestamp=2026-11-23T17:49:34.837Z level=INFO run=f9ceabe0 message=bootstrapping directory=/probe-0/project +timestamp=2026-11-23T17:49:34.847Z level=INFO run=f9ceabe0 message=loading path=/probe-0/xdg-config/opencode/config.json +timestamp=2026-11-23T17:49:34.848Z level=INFO run=f9ceabe0 message=loading path=/probe-0/xdg-config/opencode/opencode.json +timestamp=2026-11-23T17:49:34.850Z level=WARN run=f9ceabe0 message="configuration compatibility diagnostic" source=/probe-0/xdg-config/opencode/opencode.json path="[\"providers\"]" kind=unsupported action="Omitted native setting that cannot be represented in V1" +timestamp=2026-11-23T17:49:34.851Z level=INFO run=f9ceabe0 message=loading path=/probe-0/xdg-config/opencode/opencode.jsonc +timestamp=2026-11-23T17:49:34.997Z level=INFO run=f9ceabe0 message="all LSPs are disabled" +timestamp=2026-11-23T17:49:34.998Z level=INFO run=f9ceabe0 message="all formatters are disabled" +timestamp=2026-11-23T17:49:34.998Z level=INFO run=f9ceabe0 message=init +timestamp=2026-11-23T17:49:35.119Z level=INFO run=f9ceabe0 message=created id=ses_df678f3f1ffeP7ngQP4NffmWo3 slug=quiet-canyon version=1.19.6 projectID=global directory=/probe-0/project path=tmp/aft-opencode1-contract-C4DOmV/probe-0/project workspaceID=undefined parentID=undefined title="New session - 2026-11-23T17:49:35.119Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1795456175119 time.updated=1795456175119 +timestamp=2026-11-23T17:49:35.128Z level=INFO run=f9ceabe0 message="event connected" +timestamp=2026-11-23T17:49:35.154Z level=INFO run=f9ceabe0 message=loop session.id=ses_df678f3f1ffeP7ngQP4NffmWo3 step=0 +timestamp=2026-11-23T17:49:35.774Z level=ERROR run=f9ceabe0 message=failed ref=err_a6e0da07 error="ProviderModelNotFoundError: Model not found: openai/mock-model." cause="ProviderModelNotFoundError: Model not found: openai/mock-model.\n at (/$bunfs/root/chunk-jmc1wxh6.js:2:64699)\n at SessionPrompt.getModel (/$bunfs/root/chunk-nmjsn7jr.js:50:11031)\n at SessionPrompt.getModel (definition) (/$bunfs/root/chunk-nmjsn7jr.js:50:831)\n at SessionPrompt.run (/$bunfs/root/chunk-nmjsn7jr.js:50:14576)\n at SessionPrompt.run (definition) (/$bunfs/root/chunk-nmjsn7jr.js:50:10099)\n at SessionRunState.ensureRunning (/$bunfs/root/chunk-nmjsn7jr.js:50:14545)\n at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-nmjsn7jr.js:2:6839)\n at SessionPrompt.loop (/$bunfs/root/chunk-nmjsn7jr.js:50:9849)\n at SessionPrompt.loop (definition) (/$bunfs/root/chunk-nmjsn7jr.js:50:14481)\n at SessionPrompt.prompt (/$bunfs/root/chunk-h7x9wajc.js:6:11717)\n at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-nmjsn7jr.js:50:9462)" +timestamp=2026-11-23T17:49:35.775Z level=INFO run=f9ceabe0 message=stream providerID=openai modelID=gpt-5.4-nano-flex session.id=ses_df678f3f1ffeP7ngQP4NffmWo3 small=true agent=title mode=primary +timestamp=2026-11-23T17:49:35.779Z level=INFO run=f9ceabe0 message="disposing instance" directory=/probe-0/project +2. V1 provider key with OpenAI API alias +config key: provider; model: openai/mock-model +config: +{ + "provider": { + "openai": { + "name": "Deterministic aimock", + "api": "openai", + "options": { + "baseURL": "http://127.0.0.1:/v1", + "apiKey": "{env:OPENAI_API_KEY}" + }, + "models": { + "mock-model": { + "name": "Mock Model" + } + } + } + } +} +exit: 0; mock requests: 2; paths: ["/v1/responses","/v1/responses"] +diagnostic: none +host error: none +host output: +{"type":"step_start","timestamp":1795456177795,"sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","part":{"id":"prt_2098715f8001JMGwG81lqMDkNO","messageID":"msg_2098714d6001yU9cJmDRbCWYsp","sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","type":"step-start"}} +{"type":"text","timestamp":1795456177796,"sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","part":{"id":"prt_2098715f9001kqaNAH9UD5DWvv","messageID":"msg_2098714d6001yU9cJmDRbCWYsp","sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","type":"text","text":"Scenario complete","time":{"start":1795456177657,"end":1795456177659},"metadata":{"openai":{"itemId":"msg-oEIsi0YnihNNvFII"}}}} +{"type":"step_finish","timestamp":1795456177796,"sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","part":{"id":"prt_2098715fd001tIOp8H2QJHLMV0","reason":"stop","messageID":"msg_2098714d6001yU9cJmDRbCWYsp","sessionID":"ses_df678edbfffe0taC7gdrV7JWYz","type":"step-finish","tokens":{"total":0,"input":0,"output":0,"reasoning":0,"cache":{"write":0,"read":0}},"cost":0}} + +timestamp=2026-11-23T17:49:36.423Z level=INFO run=c85bd309 message="creating instance" directory=/probe-1/project +timestamp=2026-11-23T17:49:36.424Z level=INFO run=c85bd309 message=fromDirectory directory=/probe-1/project +timestamp=2026-11-23T17:49:36.434Z level=INFO run=c85bd309 message=bootstrapping directory=/probe-1/project +timestamp=2026-11-23T17:49:36.438Z level=INFO run=c85bd309 message=loading path=/probe-1/xdg-config/opencode/config.json +timestamp=2026-11-23T17:49:36.440Z level=INFO run=c85bd309 message=loading path=/probe-1/xdg-config/opencode/opencode.json +timestamp=2026-11-23T17:49:36.443Z level=INFO run=c85bd309 message=loading path=/probe-1/xdg-config/opencode/opencode.jsonc +timestamp=2026-11-23T17:49:36.583Z level=INFO run=c85bd309 message="all LSPs are disabled" +timestamp=2026-11-23T17:49:36.584Z level=INFO run=c85bd309 message="all formatters are disabled" +timestamp=2026-11-23T17:49:36.584Z level=INFO run=c85bd309 message=init +timestamp=2026-11-23T17:49:36.704Z level=INFO run=c85bd309 message=created id=ses_df678edbfffe0taC7gdrV7JWYz slug=silent-wizard version=1.19.6 projectID=global directory=/probe-1/project path=tmp/aft-opencode1-contract-C4DOmV/probe-1/project workspaceID=undefined parentID=undefined title="New session - 2026-11-23T17:49:36.704Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1795456176704 time.updated=1795456176704 +timestamp=2026-11-23T17:49:36.713Z level=INFO run=c85bd309 message="event connected" +timestamp=2026-11-23T17:49:36.744Z level=INFO run=c85bd309 message=loop session.id=ses_df678edbfffe0taC7gdrV7JWYz step=0 +timestamp=2026-11-23T17:49:37.372Z level=INFO run=c85bd309 message="shell tool using shell" shell=/bin/bash +timestamp=2026-11-23T17:49:37.379Z level=INFO run=c85bd309 message=init count=1 +timestamp=2026-11-23T17:49:37.384Z level=INFO run=c85bd309 message=stream providerID=openai modelID=gpt-5.4-nano-flex session.id=ses_df678edbfffe0taC7gdrV7JWYz small=true agent=title mode=primary +timestamp=2026-11-23T17:49:37.390Z level=INFO run=c85bd309 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=openai llm.model=gpt-5.4-nano-flex +timestamp=2026-11-23T17:49:37.467Z level=INFO run=c85bd309 message="watcher backend" directory=/probe-1/project platform=linux backend=inotify +timestamp=2026-11-23T17:49:37.469Z level=INFO run=c85bd309 message="project copy refresh started" projectID=global +timestamp=2026-11-23T17:49:37.470Z level=INFO run=c85bd309 message="project copy refresh done" projectID=global updated=[] removed=[] +timestamp=2026-11-23T17:49:37.493Z level=INFO run=c85bd309 message="booting location services" directory=/probe-1/project workspaceID=undefined +timestamp=2026-11-23T17:49:37.498Z level=INFO run=c85bd309 message=process session.id=ses_df678edbfffe0taC7gdrV7JWYz messageID=msg_2098714d6001yU9cJmDRbCWYsp +timestamp=2026-11-23T17:49:37.499Z level=INFO run=c85bd309 message=stream providerID=openai modelID=mock-model session.id=ses_df678edbfffe0taC7gdrV7JWYz small=false agent=build mode=primary +timestamp=2026-11-23T17:49:37.640Z level=INFO run=c85bd309 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=openai llm.model=mock-model +timestamp=2026-11-23T17:49:37.665Z level=INFO run=c85bd309 message=loop session.id=ses_df678edbfffe0taC7gdrV7JWYz step=1 +timestamp=2026-11-23T17:49:37.666Z level=INFO run=c85bd309 message="exiting loop" session.id=ses_df678edbfffe0taC7gdrV7JWYz +timestamp=2026-11-23T17:49:37.796Z level=INFO run=c85bd309 message="disposing instance" directory=/probe-1/project +3. V1 npm OpenAI-compatible provider +config key: provider; model: mock/mock-model +config: +{ + "provider": { + "mock": { + "name": "Deterministic aimock", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "http://127.0.0.1:/v1", + "apiKey": "{env:OPENAI_API_KEY}" + }, + "models": { + "mock-model": { + "name": "Mock Model" + } + } + } + } +} +exit: 0; mock requests: 2; paths: ["/v1/chat/completions","/v1/chat/completions"] +diagnostic: none +host error: none +host output: +{"type":"step_start","timestamp":1795456179952,"sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","part":{"id":"prt_209871ee10018ZQ9G88I8foBMt","messageID":"msg_209871d11001UouVggUAOLIzxI","sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","type":"step-start"}} +{"type":"text","timestamp":1795456179952,"sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","part":{"id":"prt_209871ee3001r1LdMxw66mScQ2","messageID":"msg_209871d11001UouVggUAOLIzxI","sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","type":"text","text":"Scenario complete","time":{"start":1795456179939,"end":1795456179941}}} +{"type":"step_finish","timestamp":1795456179952,"sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","part":{"id":"prt_209871ee7001gN2PcLmv1vy2NI","reason":"stop","messageID":"msg_209871d11001UouVggUAOLIzxI","sessionID":"ses_df678e5baffe6nOBiMOfdIHoTw","type":"step-finish","tokens":{"input":0,"output":0,"reasoning":0,"cache":{"write":0,"read":0}},"cost":0}} + +timestamp=2026-11-23T17:49:38.458Z level=INFO run=393dda5c message="creating instance" directory=/probe-2/project +timestamp=2026-11-23T17:49:38.459Z level=INFO run=393dda5c message=fromDirectory directory=/probe-2/project +timestamp=2026-11-23T17:49:38.464Z level=INFO run=393dda5c message=bootstrapping directory=/probe-2/project +timestamp=2026-11-23T17:49:38.469Z level=INFO run=393dda5c message=loading path=/probe-2/xdg-config/opencode/config.json +timestamp=2026-11-23T17:49:38.471Z level=INFO run=393dda5c message=loading path=/probe-2/xdg-config/opencode/opencode.json +timestamp=2026-11-23T17:49:38.479Z level=INFO run=393dda5c message=loading path=/probe-2/xdg-config/opencode/opencode.jsonc +timestamp=2026-11-23T17:49:38.626Z level=INFO run=393dda5c message="all LSPs are disabled" +timestamp=2026-11-23T17:49:38.626Z level=INFO run=393dda5c message="all formatters are disabled" +timestamp=2026-11-23T17:49:38.626Z level=INFO run=393dda5c message=init +timestamp=2026-11-23T17:49:38.757Z level=INFO run=393dda5c message=created id=ses_df678e5baffe6nOBiMOfdIHoTw slug=jolly-canyon version=1.19.6 projectID=global directory=/probe-2/project path=tmp/aft-opencode1-contract-C4DOmV/probe-2/project workspaceID=undefined parentID=undefined title="New session - 2026-11-23T17:49:38.757Z" agent=undefined model=undefined metadata=undefined permission="[{\"permission\":\"question\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_enter\",\"pattern\":\"*\",\"action\":\"deny\"},{\"permission\":\"plan_exit\",\"pattern\":\"*\",\"action\":\"deny\"}]" cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1795456178757 time.updated=1795456178757 +timestamp=2026-11-23T17:49:38.766Z level=INFO run=393dda5c message="event connected" +timestamp=2026-11-23T17:49:38.798Z level=INFO run=393dda5c message=loop session.id=ses_df678e5baffe6nOBiMOfdIHoTw step=0 +timestamp=2026-11-23T17:49:39.481Z level=INFO run=393dda5c message="shell tool using shell" shell=/bin/bash +timestamp=2026-11-23T17:49:39.488Z level=INFO run=393dda5c message=init count=1 +timestamp=2026-11-23T17:49:39.494Z level=INFO run=393dda5c message=stream providerID=mock modelID=mock-model session.id=ses_df678e5baffe6nOBiMOfdIHoTw small=true agent=title mode=primary +timestamp=2026-11-23T17:49:39.499Z level=INFO run=393dda5c message="llm runtime selected" llm.runtime=ai-sdk llm.provider=mock llm.model=mock-model +timestamp=2026-11-23T17:49:39.572Z level=INFO run=393dda5c message="watcher backend" directory=/probe-2/project platform=linux backend=inotify +timestamp=2026-11-23T17:49:39.581Z level=INFO run=393dda5c message="project copy refresh started" projectID=global +timestamp=2026-11-23T17:49:39.582Z level=INFO run=393dda5c message="project copy refresh done" projectID=global updated=[] removed=[] +timestamp=2026-11-23T17:49:39.600Z level=INFO run=393dda5c message="booting location services" directory=/probe-2/project workspaceID=undefined +timestamp=2026-11-23T17:49:39.930Z level=INFO run=393dda5c message=process session.id=ses_df678e5baffe6nOBiMOfdIHoTw messageID=msg_209871d11001UouVggUAOLIzxI +timestamp=2026-11-23T17:49:39.931Z level=INFO run=393dda5c message=stream providerID=mock modelID=mock-model session.id=ses_df678e5baffe6nOBiMOfdIHoTw small=false agent=build mode=primary +timestamp=2026-11-23T17:49:39.932Z level=INFO run=393dda5c message="llm runtime selected" llm.runtime=ai-sdk llm.provider=mock llm.model=mock-model +timestamp=2026-11-23T17:49:39.948Z level=INFO run=393dda5c message=loop session.id=ses_df678e5baffe6nOBiMOfdIHoTw step=1 +timestamp=2026-11-23T17:49:39.949Z level=INFO run=393dda5c message="exiting loop" session.id=ses_df678e5baffe6nOBiMOfdIHoTw +timestamp=2026-11-23T17:49:39.952Z level=INFO run=393dda5c message="disposing instance" directory=/probe-2/project + +Accepted provider config: { + "provider": { + "mock": { + "name": "Deterministic aimock", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "http://127.0.0.1:/v1", + "apiKey": "{env:OPENAI_API_KEY}" + }, + "models": { + "mock-model": { + "name": "Mock Model" + } + } + } + } +} +The contract uses {{AIMOCK_BASE_URL}} so each private harness scenario can materialize its own local endpoint.