Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(recipes): list claude-haiku-5-5 in the Anthropic chat models (#6335)
time-attack57d391bdafd0
diff --git a/src/core/ai/recipes/anthropic.ts b/src/core/ai/recipes/anthropic.tsindex a61b4b1a52..adf2b61ea6 100644--- a/src/core/ai/recipes/anthropic.ts+++ b/src/core/ai/recipes/anthropic.ts@@ -32,6 +32,7 @@ export const anthropic: Recipe = {'claude-sonnet-5-5','claude-sonnet-5','claude-sonnet-4-6',+ 'claude-haiku-5-5','claude-haiku-4-5-20251001',],supports_tools: true,diff --git a/test/ai/anthropic-model-ids.test.ts b/test/ai/anthropic-model-ids.test.tsindex bf8248b6d7..026d15ca46 100644--- a/test/ai/anthropic-model-ids.test.ts+++ b/test/ai/anthropic-model-ids.test.ts@@ -53,8 +53,13 @@ describe('newerAnthropicModel', () => {});test('dated and undated forms of the current version get no hint', () => {- expect(newerAnthropicModel('claude-haiku-4-5')).toBeNull();- expect(newerAnthropicModel('anthropic:claude-haiku-4-5-20251001')).toBeNull();+ expect(newerAnthropicModel('claude-haiku-5-5')).toBeNull();+ expect(newerAnthropicModel('anthropic:claude-haiku-5-5')).toBeNull();+ });++ test('dated and undated forms of an older version get the same hint (#6335 lists claude-haiku-5-5)', () => {+ expect(newerAnthropicModel('claude-haiku-4-5')?.id).toBe('claude-haiku-5-5');+ expect(newerAnthropicModel('anthropic:claude-haiku-4-5-20251001')?.id).toBe('claude-haiku-5-5');});test('current, newer-than-recipe, fable, non-Anthropic and unparseable ids get none', () => {diff --git a/test/anthropic-model-ids.test.ts b/test/anthropic-model-ids.test.tsindex eff6799a52..b6990735e4 100644--- a/test/anthropic-model-ids.test.ts+++ b/test/anthropic-model-ids.test.ts@@ -1,5 +1,6 @@import { describe, it, expect } from 'bun:test';import { anthropic } from '../src/core/ai/recipes/anthropic.ts';+import { FACTS_EXTRACTION_MEASURED_DEFAULTS } from '../src/core/facts/extract.ts';describe('Anthropic recipe model IDs', () => {it('chat models use canonical Anthropic API IDs (no phantom dates)', () => {@@ -66,4 +67,8 @@ describe('Anthropic recipe model IDs', () => {expect(m).not.toMatch(/claude-sonnet-4-6-\d{8}/);}});+ it('the measured facts default is a listed chat model (#6335)', () => {+ const model = FACTS_EXTRACTION_MEASURED_DEFAULTS.anthropic.replace(/^anthropic:/, '');+ expect(anthropic.touchpoints?.chat?.models ?? []).toContain(model);+ });});diff --git a/test/models-newer-hint.serial.test.ts b/test/models-newer-hint.serial.test.tsindex 47949efaef..1bc65a4e2e 100644--- a/test/models-newer-hint.serial.test.ts+++ b/test/models-newer-hint.serial.test.ts@@ -77,7 +77,7 @@ describe('gbrain models — newer-available hint', () => {const engine = new StubConfigEngine();engine.set('models.tier.reasoning', 'anthropic:claude-sonnet-5-5');engine.set('models.tier.deep', 'anthropic:claude-opus-6');- engine.set('models.tier.utility', 'claude-haiku-4-5');+ engine.set('models.tier.utility', 'claude-haiku-5-5');engine.set('models.tier.subagent', 'openai:gpt-5.6');const report = await reportOf(engine);