Skip to content

fix(anthropic): add claude-sonnet-5 and claude-fable-5 to known models list - #10865

Merged
DOsinga merged 3 commits into
aaif-goose:mainfrom
Wolfe-Jam:fix/anthropic-known-models-sonnet-fable-5
Aug 3, 2026
Merged

fix(anthropic): add claude-sonnet-5 and claude-fable-5 to known models list#10865
DOsinga merged 3 commits into
aaif-goose:mainfrom
Wolfe-Jam:fix/anthropic-known-models-sonnet-fable-5

Conversation

@Wolfe-Jam

Copy link
Copy Markdown
Contributor

Resolves #10864

Summary

  • Add claude-sonnet-5 and claude-fable-5 to ANTHROPIC_KNOWN_MODELS (pre-key picker / ProviderMetadata)
  • Both already exist in the bundled canonical registry; the static list was lagging (same class of fix as Add Cursor composer-2.5 models to known list #10618 for Cursor)
  • Unit tests: list membership, head placement, metadata surface (incl. claude-opus-5 regression)

Test plan

  • cargo test -p goose-providers known_models (3 new tests)
  • cargo test -p goose-providers114 passed
  • cargo clippy -p goose-providers --all-targets -- -D warnings — clean
  • cargo test -p goose-provider-types map_to_canonical_model — ok (registry already maps anthropic / claude-sonnet-5)

Out of scope

  • Deriving the static list from recommended_models_from_registry (noted on the issue as a durable follow-up)

Wolfe-Jam added 2 commits July 31, 2026 18:24
Resolves aaif-goose#10864

These models already exist in the bundled canonical registry but were
missing from ANTHROPIC_KNOWN_MODELS, so the pre-key model picker could
not show them. Mirror the Cursor known-list chore (aaif-goose#10618).

Tests: unit coverage for list membership + ProviderMetadata surface.
Comment thread crates/goose-providers/src/anthropic.rs Outdated
.format_options(format_options))
}

#[cfg(test)]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests aren't necessary. please remove

Comment thread crates/goose-providers/src/anthropic.rs Outdated
pub const ANTHROPIC_DEFAULT_FAST_MODEL: &str = "claude-haiku-4-5";
const ANTHROPIC_KNOWN_MODELS: &[&str] = &[
"claude-opus-5",
// Claude 5 family — pre-key picker (registry already has these; list was lagging)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

@angiejones angiejones self-assigned this Aug 2, 2026
Address angiejones review on aaif-goose#10865: list membership tests were
tautological for a static list add; keep the two model entries only.
@Wolfe-Jam

Copy link
Copy Markdown
Contributor Author

Addressed review feedback:

  • Removed the known_models unit tests
  • Removed the Claude 5 family comment

List still adds claude-sonnet-5 and claude-fable-5 only. Ready for re-review.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3decde3268

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/goose-providers/src/anthropic.rs
@DOsinga
DOsinga merged commit 10df80e into aaif-goose:main Aug 3, 2026
25 checks passed
michaelneale added a commit that referenced this pull request Aug 4, 2026
* origin/main: (42 commits)
  chore (codex-acp): migrate to @agentclientprotocol/codex-acp (#10923)
  style: add dark mode inline code styling for message bubbles (#10861)
  docs: clarify macOS sandbox feature was removed in post-v1.25.0 cleanup (#10900)
  fall back to static model list only for non-models payloads (#10189)
  Remove CLI project support (#10838)
  fix(anthropic): add claude-sonnet-5 and claude-fable-5 to known models list (#10865)
  fix: stdio extensions silently skipped when name missing or env: used in config (#10773)
  feat(desktop): show session metadata on sidebar chat hover (#10663)
  fix(serve): start scheduler at startup instead of first ACP connection (#10766)
  fix: respect disabled builtin extensions (developer) at session start (#10223)
  fix: parse PyPI requirements for OSV checks (#10510)
  fix(telegram): contain voice file extensions (#10456)
  Revert "feat(security): chunk command-classifier input with overlapping windows" (#10416) (#10870)
  docs: update Discord invite (#10863)
  fix(security): preserve denied tool request precedence (#10612)
  fix(hints): contain subdirectory hint discovery (#10545)
  chore(deps): bump pem from 3.0.6 to 4.0.0 (#10853)
  chore(deps): bump base64 from 0.22.1 to 0.23.0 (#10851)
  chore(deps): bump jsonwebtoken from 10.4.0 to 11.0.0 (#10850)
  chore(deps): bump astral-sh/setup-uv from 8.3.2 to 9.0.0 (#10847)
  ...
alexhancock added a commit that referenced this pull request Aug 4, 2026
* origin/main: (58 commits)
  Handle MCP tool list change notifications
  fix: restore final_output_tool when agent is recreated after LRU eviction (#10793)
  feat(ui): bring back make sidebar resizable with drag handle and persisted width (#10795)
  docs: document auto-injected GOOSE_SHELL flags (#10759)
  feat: surface output-token-limit info (#10831)
  fix(desktop): avoid O(n²) cloning during session load (#10665)
  feat: add interactive menu for single select elicitations (#10327)
  fix(acp): prefix child stderr log target so it passes the default goose=info filter (#10901)
  chore (codex-acp): migrate to @agentclientprotocol/codex-acp (#10923)
  style: add dark mode inline code styling for message bubbles (#10861)
  docs: clarify macOS sandbox feature was removed in post-v1.25.0 cleanup (#10900)
  fall back to static model list only for non-models payloads (#10189)
  Remove CLI project support (#10838)
  fix(anthropic): add claude-sonnet-5 and claude-fable-5 to known models list (#10865)
  fix: stdio extensions silently skipped when name missing or env: used in config (#10773)
  feat(desktop): show session metadata on sidebar chat hover (#10663)
  fix(serve): start scheduler at startup instead of first ACP connection (#10766)
  fix: respect disabled builtin extensions (developer) at session start (#10223)
  fix: parse PyPI requirements for OSV checks (#10510)
  fix(telegram): contain voice file extensions (#10456)
  ...

# Conflicts:
#	Cargo.lock
#	crates/goose/src/agents/extension_manager.rs
#	crates/goose/tests/mcp_replays/npx-y@modelcontextprotocol_server-everything@2026.1.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(anthropic): add claude-sonnet-5 and claude-fable-5 to known models list

3 participants