From 1ae5f4c4a752070a747f8971874f7fe1bc0ba03b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 02:17:31 +0000 Subject: [PATCH 1/2] Initial plan From 43ecd921dc3ca4a9b3457c518c36aa806cd84ee7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 02:32:07 +0000 Subject: [PATCH 2/2] fix: update test assertion to match escaped JSON in lock file The test was asserting `"modelFallback":{"enabled":false}` with literal double-quotes, but the lock file contains `\"modelFallback\":{\"enabled\":false}` because the AWF config JSON is embedded inside a double-quoted shell string (using shellEscapeArgWithVarPreserved) when ${GH_AW_MAX_AI_CREDITS} is injected. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/compile_model_fallback_integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/compile_model_fallback_integration_test.go b/pkg/cli/compile_model_fallback_integration_test.go index 1909ef04f42..a178f00ed5b 100644 --- a/pkg/cli/compile_model_fallback_integration_test.go +++ b/pkg/cli/compile_model_fallback_integration_test.go @@ -32,6 +32,6 @@ func TestCompileSandboxModelFallbackWorkflow(t *testing.T) { require.NoError(t, err, "should read lock file") lockStr := string(lockContent) - assert.Contains(t, lockStr, `"modelFallback":{"enabled":false}`, + assert.Contains(t, lockStr, `\"modelFallback\":{\"enabled\":false}`, "compiled lock file should embed sandbox.agent.model-fallback in the AWF config JSON") }