Session title generation fails for non-EU Amazon Bedrock regions #8601

Closed
opened 2026-02-16 18:10:22 -05:00 by yindo · 1 comment
Owner

Originally created by @NachoFLizaur on GitHub (Feb 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Session title generation fails for Amazon Bedrock users when their region doesn't match the first cross-region model variant returned by models.dev.

getSmallModel() returns the first model matching a priority string. Due to models.dev JSON key ordering, eu.anthropic.claude-haiku-4-5-20251001-v1:0 is returned before global. or us. variants, causing the function to fail silently and not generating the title.

Plugins

None

OpenCode version

1.1.51

Steps to reproduce

  1. Configure Amazon Bedrock provider with region us-east-1
  2. Start a new session and send a message
  3. Session title stays as "New session - [timestamp]"
  4. Check logs at ~/.local/share/opencode/log/ for error: statusCode":400 with "message":"The provided model identifier is invalid."
    • The logs show the EU model (eu.anthropic.claude-haiku-4-5-20251001-v1:0) being sent to the US endpoint (bedrock-runtime.us-east-1.amazonaws.com).
  5. Change back to an eu region and the title generates correctly.

Screenshot and/or share link

No response

Operating System

macOS 15.7.3

Terminal

Ghostty

Originally created by @NachoFLizaur on GitHub (Feb 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Session title generation fails for Amazon Bedrock users when their region doesn't match the first cross-region model variant returned by models.dev. `getSmallModel()` returns the first model matching a priority string. Due to models.dev JSON key ordering, `eu.anthropic.claude-haiku-4-5-20251001-v1:0` is returned before `global.` or `us.` variants, causing the function to fail silently and not generating the title. ### Plugins None ### OpenCode version 1.1.51 ### Steps to reproduce 1. Configure Amazon Bedrock provider with region `us-east-1` 2. Start a new session and send a message 3. Session title stays as "New session - [timestamp]" 4. Check logs at `~/.local/share/opencode/log/` for error: `statusCode":400` with `"message":"The provided model identifier is invalid."` - The logs show the EU model (`eu.anthropic.claude-haiku-4-5-20251001-v1:0`) being sent to the US endpoint (`bedrock-runtime.us-east-1.amazonaws.com`). 5. Change back to an eu region and the title generates correctly. ### Screenshot and/or share link _No response_ ### Operating System macOS 15.7.3 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:10:22 -05:00
yindo closed this issue 2026-02-16 18:10:22 -05:00
Author
Owner

@clopca commented on GitHub (Feb 6, 2026):

I have the same issue, it seems it only affects Bedrock Provider

@clopca commented on GitHub (Feb 6, 2026): I have the same issue, it seems it only affects Bedrock Provider
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8601