From 1b98a9ed2acff1605895700302ff276ba88baa5b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 13 Jul 2026 23:05:00 -0500 Subject: feat(launcher): wire the local runtime — codex --oss over ollama MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ai --runtime local now launches codex against the machine's ollama (explicit --local-provider=ollama, model from AI_LOCAL_MODEL, default gpt-oss:120b). Verified end to end with a codex exec completion through the local model. The dependency check probes AGENT_BIN now that AGENT_CMD carries flags. This makes codex-over-ollama the de-facto answer to the runtime spec's first-supported-local-CLI blocker. --- scripts/tests/ai-launcher-runtime.bats | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'scripts/tests') diff --git a/scripts/tests/ai-launcher-runtime.bats b/scripts/tests/ai-launcher-runtime.bats index 4ec24bf..b93f778 100644 --- a/scripts/tests/ai-launcher-runtime.bats +++ b/scripts/tests/ai-launcher-runtime.bats @@ -38,10 +38,17 @@ teardown() { [[ "$output" == codex\ * ]] } -@test "--runtime local is reserved and says why it is not wired" { +@test "--runtime local launches codex --oss over ollama with the default local model" { run bash "$AI" --runtime local --print-launch "$PROJ" - [ "$status" -eq 2 ] - [[ "$output" == *"not wired"* ]] + [ "$status" -eq 0 ] + [[ "$output" == "codex --oss --local-provider=ollama -m gpt-oss:120b "* ]] + [[ "$output" == *"protocols.org"* ]] +} + +@test "AI_LOCAL_MODEL overrides the local runtime's model" { + AI_LOCAL_MODEL=qwen3-coder:30b run bash "$AI" --runtime local --print-launch "$PROJ" + [ "$status" -eq 0 ] + [[ "$output" == "codex --oss --local-provider=ollama -m qwen3-coder:30b "* ]] } @test "an unknown runtime errors and names the valid ones" { -- cgit v1.2.3