[BUG] /pr-comments command explicitly hardcodes the model to claude-3-5-haiku-20241022 - ignoring ANTHROPIC_SMALL_FAST_MODEL env var

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Jul 23, 2025 · closed Aug 12, 2025

Environment

  • Platform (select one):

all

  • Claude CLI version: 1.0.59 - looks to be since 1.0.57
  • Operating System: all
  • Terminal: all

Bug Description

/pr-comments hardcodes the model to claude-3-5-haiku-20241022 thus ignoring the ANTHROPIC_SMALL_FAST_MODEL override

Steps to Reproduce

  1. ANTHROPIC_SMALL_FAST_MODEL=claude-sonnet-4@20250514 claude
  2. /pr-comments #in repl
  3. doesn't use claude-sonnet-4@20250514 attempts to use claude-3-5-haiku-20241022, observable in logs

Expected Behavior

ANTHROPIC_SMALL_FAST_MODEL override is respected

Actual Behavior

ANTHROPIC_SMALL_FAST_MODEL override is not respected

Additional Context

in cli.js, one can see it's explicitly hardcoded to claude-3-5-haiku-20241022

ITB={type:"prompt",name:"pr-comments",description:"Get comments from a GitHub pull request",progressMessage:"fetching PR comments",model:"claude-3-5-haiku-20241022",isEnabled:()=>!0,isHidden:!1,userFacingName(){return"pr-comments"},async getPromptForCommand(A){return[{type:"text",text:`You are an AI assistant integrated into a git-based version control system. Your task is to fetch and display comments from a GitHub pull request.

Haiku may not be available in certain environments / ignores user preference

View original on GitHub ↗

3 Comments

ts-shu · 1 year ago

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#1068 didn't fix this btw - still seeing hardcoded claude-3-5-haiku-20241022 model name for pr-comments

ts-shu · 1 year ago

lgtm now!

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.