fix: propagate gateway token; kilo targets opencode.jsonc; goose URL + api_key fix

This commit is contained in:
2026-05-23 21:12:47 +01:00
parent 7716c180e7
commit 77158d9f2b
6 changed files with 760 additions and 15 deletions
+3 -2
View File
@@ -117,8 +117,9 @@ func TestGooseRenderProducesCustomProviderFile(t *testing.T) {
require.NoError(t, json.Unmarshal(seen[cpDest].Content, &cp))
assert.Equal(t, "custom_harness-sync-gateway", cp["name"])
assert.Equal(t, "openai", cp["engine"])
assert.Equal(t, true, cp["requires_auth"])
assert.Equal(t, "CUSTOM_HARNESS_SYNC_GATEWAY_API_KEY", cp["api_key_env"])
assert.Equal(t, "tok", cp["api_key"])
assert.NotContains(t, cp, "api_key_env")
assert.NotContains(t, cp, "requires_auth")
models, ok := cp["models"].([]any)
require.True(t, ok)
require.Len(t, models, 1)