From d25aafb509ccff2337f5c59b04260e838b9b6456 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 12 Jun 2026 16:26:46 -0400 Subject: [PATCH 1/2] ENH: make sure we route "small" tasks to right model --- bin/bwclaude | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/bwclaude b/bin/bwclaude index f1d719b..758dd56 100755 --- a/bin/bwclaude +++ b/bin/bwclaude @@ -390,6 +390,12 @@ build_claude_env() { BWRAP_ARGS+=(--setenv CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS 1) BWRAP_ARGS+=(--setenv CLAUDE_CODE_USE_FOUNDRY 1) + # In foundry mode the haiku model used for background tasks defaults to a + # date-pinned ID that the foundry proxy may not recognise. Override with + # the un-pinned alias unless the caller has already set a preference. + BWRAP_ARGS+=(--setenv ANTHROPIC_DEFAULT_HAIKU_MODEL \ + "${ANTHROPIC_DEFAULT_HAIKU_MODEL:-claude-haiku-4-5}") + # Debug/diagnostic env vars — passed through if set on the host. pass_through_if_set ANTHROPIC_LOG pass_through_if_set NODE_DEBUG From d9b7579d9c326b9d80348bc7f5a2c78ad9f982d5 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Tue, 7 Jul 2026 00:05:53 -0400 Subject: [PATCH 2/2] FIX: run pre-commit --- bin/bwclaude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bwclaude b/bin/bwclaude index 758dd56..43f7676 100755 --- a/bin/bwclaude +++ b/bin/bwclaude @@ -393,7 +393,7 @@ build_claude_env() { # In foundry mode the haiku model used for background tasks defaults to a # date-pinned ID that the foundry proxy may not recognise. Override with # the un-pinned alias unless the caller has already set a preference. - BWRAP_ARGS+=(--setenv ANTHROPIC_DEFAULT_HAIKU_MODEL \ + BWRAP_ARGS+=(--setenv ANTHROPIC_DEFAULT_HAIKU_MODEL "${ANTHROPIC_DEFAULT_HAIKU_MODEL:-claude-haiku-4-5}") # Debug/diagnostic env vars — passed through if set on the host.