anthropics / anthropics/claude-code
[BUG][bedrock] /model picker's Haiku 4.5 quick-pick writes bare alias "claude-haiku-4-5" -> 400 invalid model identifier
- 主要语言
- Python
- 星标
- 145k
- 派生
- 23.1k
- PR 合并指标
- PR 指标待抓取
描述
### Preflight checklist
- [x] I searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
### What's wrong
On a Bedrock-backed setup (`CLAUDE_CODE_USE_BEDROCK=1`), selecting "Haiku 4.5" from the `/model` picker fails every request with:
```
API Error (claude-haiku-4-5): 400 The provided model identifier is invalid.
```
The picker persists the bare catalog alias `claude-haiku-4-5` instead of resolving it to the region-prefixed, dated Bedrock inference-profile ID. Note this is missing both the region prefix (`eu.anthropic.` / `us.anthropic.`) and the date suffix (`-20251001-v1:0`) - worse than the Opus 4.8 case in #68005, which is only missing the region prefix.
Every other Haiku-selection path in the same setup works correctly, because each of them already uses the full ID:
- `settings.json` top-level `"model": "eu.anthropic.claude-haiku-4-5-20251001-v1:0"` - works
- `CLAUDE_CODE_SUBAGENT_MODEL=eu.anthropic.claude-haiku-4-5-20251001-v1:0` - works
- Agent tool `model: "haiku"` shorthand for subagents - works (resolves correctly there)
So this looks isolated to the interactive `/model` picker's built-in "Haiku 4.5" quick-pick entry for the main session model specifically.
### What should happen
`/model` should persist the Bedrock-qualified model ID when the active provider is Bedrock, same as every other selection path already does.
### Workaround
Type the full ID directly instead of using the picker's quick-pick row:
```
/model eu.anthropic.claude-haiku-4-5-20251001-v1:0
```
### Prior art
This looks like the same underlying bug class as #68005 (Opus 4.8 `[1m]`, missing region prefix only) and the earlier Opus 4.6/4.7 regressions referenced there (#23499 closed, #61495 open). Each new model release seems to re-introduce this because the picker's ID resolution doesn't account for the Bedrock prefix/date-suffix requirements. Filing separately since it's the Haiku 4.5 entry and the failure mode is slightly different (missing both prefix and suffix, not just prefix).
### Error messages/logs
```
API Error (claude-haiku-4-5): 400 The provided model identifier is invalid.
```
### Claude model
Haiku 4.5
### Is this a regression
Unclear - haven't confirmed a prior working version for this specific picker entry.
### Claude Code version
2.1.209
### Platform
AWS Bedrock
### Operating system
macOS
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start at the interactive /model picker and compare its Haiku 4.5 quick-pick resolution with the working settings.json, CLAUDE_CODE_SUBAGENT_MODEL, and Agent tool shorthand paths. Done means selecting Haiku 4.5 on Bedrock persists and uses the full region-prefixed, dated inference-profile ID rather than the bare alias.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, python
- 领域
- cli, cloud
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100