From 386a71baf06b62ff4e7cdf032ecd79ac51c11e88 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 2 Nov 2026 23:26:41 +0000 Subject: [PATCH] test(autoplan): use a model id with no price row for the unpriced-spend-cap case (claude-haiku-5-5 is priced now) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/autoplan-run-api.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/autoplan-run-api.test.ts b/test/autoplan-run-api.test.ts index 155ea7831..d243e374c 100644 --- a/test/autoplan-run-api.test.ts +++ b/test/autoplan-run-api.test.ts @@ -205,7 +205,7 @@ describe('gstack-autoplan run --native-runner api --runner api', () => { mode = 'ok'; calls = 0; const kind = ['GSTACK', 'SESSION', 'KIND'].join('_'); - const r = await run('unpriced', ['--spend-cap', '1'], { ANTHROPIC_API_KEY: 'ak-test', OPENAI_API_KEY: 'sk-test', [kind]: 'spawned' }, 'anthropic/claude-haiku-5-5'); + const r = await run('unpriced', ['--spend-cap', '1'], { ANTHROPIC_API_KEY: 'ak-test', OPENAI_API_KEY: 'sk-test', [kind]: 'spawned' }, 'anthropic/claude-unpriced-test-0'); expect(r.status).toBe(3); expect(r.stdout + r.stderr).toContain('SPEND_CAP_EXCEEDED'); expect(calls).toBe(0);