fix(tui): correct Anthropic model name in default claude persona to claude-sonnet-4-20250514 #11252

Merged
HAL9000 merged 2 commits from bugfix/m8-tui-anthropic-model-name into master 2026-05-27 05:18:02 +00:00
Member

Fixes #11250

Updates _DEFAULT_ACTORS in actor_selection_overlay.py to use correct API model names:

  • anthropic/claude-4-sonnetanthropic/claude-sonnet-4-20250514
  • anthropic/claude-4-opusanthropic/claude-opus-4-20250514
  • google/gemini-2google/gemini-2.0-flash
  • openai/o3openai/o4-mini

Closes #11250

Fixes #11250 Updates `_DEFAULT_ACTORS` in `actor_selection_overlay.py` to use correct API model names: - `anthropic/claude-4-sonnet` → `anthropic/claude-sonnet-4-20250514` - `anthropic/claude-4-opus` → `anthropic/claude-opus-4-20250514` - `google/gemini-2` → `google/gemini-2.0-flash` - `openai/o3` → `openai/o4-mini` Closes #11250
hamza.khyari added this to the v3.7.0 milestone 2026-05-20 13:35:29 +00:00
fix(tui): correct Anthropic model name in default claude persona to claude-sonnet-4-20250514
Some checks failed
CI / push-validation (pull_request) Successful in 57s
CI / helm (pull_request) Successful in 1m5s
CI / build (pull_request) Successful in 1m59s
CI / lint (pull_request) Successful in 2m25s
CI / quality (pull_request) Successful in 2m38s
CI / typecheck (pull_request) Successful in 2m42s
CI / security (pull_request) Successful in 3m8s
CI / integration_tests (pull_request) Successful in 5m44s
CI / unit_tests (pull_request) Failing after 9m5s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
b21718ca88
_DEFAULT_ACTORS contained "anthropic/claude-4-sonnet" and
"anthropic/claude-4-opus" which do not exist in the Anthropic API,
causing not_found_error when users select them at first-run or use
them in a persona. Updated to the canonical model names used by
AnthropicProvider defaults. Also corrected google/gemini-2 ->
google/gemini-2.0-flash and openai/o3 -> openai/o4-mini.

ISSUES CLOSED: #11250
chore: re-trigger CI [controller]
Some checks failed
CI / push-validation (pull_request) Successful in 35s
CI / helm (pull_request) Successful in 43s
CI / build (pull_request) Successful in 52s
CI / lint (pull_request) Successful in 1m19s
CI / quality (pull_request) Successful in 1m19s
CI / typecheck (pull_request) Successful in 1m28s
CI / security (pull_request) Successful in 1m32s
CI / integration_tests (pull_request) Failing after 4m26s
CI / unit_tests (pull_request) Failing after 6m25s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
a8a2dbb761
HAL9000 force-pushed bugfix/m8-tui-anthropic-model-name from a8a2dbb761
Some checks failed
CI / push-validation (pull_request) Successful in 35s
CI / helm (pull_request) Successful in 43s
CI / build (pull_request) Successful in 52s
CI / lint (pull_request) Successful in 1m19s
CI / quality (pull_request) Successful in 1m19s
CI / typecheck (pull_request) Successful in 1m28s
CI / security (pull_request) Successful in 1m32s
CI / integration_tests (pull_request) Failing after 4m26s
CI / unit_tests (pull_request) Failing after 6m25s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
to ca331ea187
Some checks failed
CI / push-validation (pull_request) Successful in 31s
CI / helm (pull_request) Successful in 45s
CI / build (pull_request) Successful in 47s
CI / lint (pull_request) Successful in 1m11s
CI / quality (pull_request) Successful in 1m23s
CI / typecheck (pull_request) Successful in 1m27s
CI / security (pull_request) Successful in 1m27s
CI / integration_tests (pull_request) Failing after 4m10s
CI / unit_tests (pull_request) Failing after 7m43s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
2026-05-27 03:47:59 +00:00
Compare
fix(tui): update tests for renamed Anthropic model names and fix typer.Exit propagation
All checks were successful
CI / push-validation (pull_request) Successful in 35s
CI / helm (pull_request) Successful in 39s
CI / build (pull_request) Successful in 45s
CI / lint (pull_request) Successful in 1m9s
CI / typecheck (pull_request) Successful in 1m22s
CI / quality (pull_request) Successful in 1m21s
CI / security (pull_request) Successful in 1m30s
CI / integration_tests (pull_request) Successful in 3m20s
CI / unit_tests (pull_request) Successful in 4m57s
CI / docker (pull_request) Successful in 1m26s
CI / coverage (pull_request) Successful in 11m3s
CI / status-check (pull_request) Successful in 3s
0bde46f0ff
Owner

Claimed by merge_drive.py (pid 87619) until 2026-05-27T06:47:53.429581+00:00.

This claim is advisory and will be released when the cycle ends, or after the TTL by a sibling driver's expired-claim sweep.

<!-- merge_drive.py: claim --> Claimed by `merge_drive.py` (pid 87619) until `2026-05-27T06:47:53.429581+00:00`. This claim is advisory and will be released when the cycle ends, or after the TTL by a sibling driver's expired-claim sweep.
HAL9001 approved these changes 2026-05-27 05:18:01 +00:00
HAL9001 left a comment

Approved by the controller reviewer stage (workflow 1).

Approved by the controller reviewer stage (workflow 1).
HAL9000 merged commit d0136e941a into master 2026-05-27 05:18:02 +00:00
Owner

event occurred 2026-05-27T04:17:53.137374+00:00

🌱 Grooming: proceed — PR cleared for processing.

(check no_duplicates, category no_duplicates)

PR #11252 is a focused fix to actor_selection_overlay.py updating model name strings in _DEFAULT_ACTORS (anthropic/claude-4-sonnet→anthropic/claude-sonnet-4-20250514, anthropic/claude-4-opus→anthropic/claude-opus-4-20250514, google/gemini-2→google/gemini-2.0-flash, openai/o3→openai/o4-mini). It closes issue #11250. Scanned all 522 open PRs: no PR duplicates this work. TUI-related PRs (#11042, #10994, #10918, #10911, #10821) address different TUI concerns (method naming, persistence, handlers, keybindings). Provider PRs (#11110, #10997, #10906, #10660) target FALLBACK_ORDER or provider integration, not _DEFAULT_ACTORS model names. No topical overlap detected.

*event occurred 2026-05-27T04:17:53.137374+00:00* **🌱 Grooming: proceed** — PR cleared for processing. (check `no_duplicates`, category `no_duplicates`) PR #11252 is a focused fix to `actor_selection_overlay.py` updating model name strings in `_DEFAULT_ACTORS` (anthropic/claude-4-sonnet→anthropic/claude-sonnet-4-20250514, anthropic/claude-4-opus→anthropic/claude-opus-4-20250514, google/gemini-2→google/gemini-2.0-flash, openai/o3→openai/o4-mini). It closes issue #11250. Scanned all 522 open PRs: no PR duplicates this work. TUI-related PRs (#11042, #10994, #10918, #10911, #10821) address different TUI concerns (method naming, persistence, handlers, keybindings). Provider PRs (#11110, #10997, #10906, #10660) target FALLBACK_ORDER or provider integration, not `_DEFAULT_ACTORS` model names. No topical overlap detected. <!-- controller:fingerprint:a419c8cebe1aa8c9 -->
Owner

event occurred 2026-05-27T04:20:59.104137+00:00

📋 Estimate: tier 1.

The source change is trivially simple — 4 string-constant renames in a single file (actor_selection_overlay.py). However, CI shows real unit test failures in features/tui_first_run.feature (ActorSelectionOverlay scenarios) that reference the old model names. The implementer must identify and update those test feature files to match the new model strings, making this multi-file work. Per calibration guidelines, test-update work consistently regresses at tier 0; tier 1 is the correct default. The integration_tests failure (pabot exit code 2 after 83 minutes of test execution) is likely an infra/runner-reaper issue unrelated to the code change.

*event occurred 2026-05-27T04:20:59.104137+00:00* **📋 Estimate: tier 1.** The source change is trivially simple — 4 string-constant renames in a single file (actor_selection_overlay.py). However, CI shows real unit test failures in features/tui_first_run.feature (ActorSelectionOverlay scenarios) that reference the old model names. The implementer must identify and update those test feature files to match the new model strings, making this multi-file work. Per calibration guidelines, test-update work consistently regresses at tier 0; tier 1 is the correct default. The integration_tests failure (pabot exit code 2 after 83 minutes of test execution) is likely an infra/runner-reaper issue unrelated to the code change. <!-- controller:fingerprint:58b01c3cb210f7c8 -->
Owner

(attempt #3, tier 1)

event occurred 2026-05-27T04:49:48.103136+00:00

🔧 Implementer attempt — resolved.

Pushed 1 commit: 0bde46f.

Files touched: features/steps/actor_run_signature_resolve_steps.py, features/steps/actor_run_signature_security_steps.py, features/steps/tui_first_run_steps.py, features/tui_first_run.feature, src/cleveragents/cli/commands/actor.py, src/cleveragents/cli/commands/actor_run.py.

_(attempt #3, tier 1)_ *event occurred 2026-05-27T04:49:48.103136+00:00* **🔧 Implementer attempt — `resolved`.** Pushed 1 commit: `0bde46f`. Files touched: `features/steps/actor_run_signature_resolve_steps.py`, `features/steps/actor_run_signature_security_steps.py`, `features/steps/tui_first_run_steps.py`, `features/tui_first_run.feature`, `src/cleveragents/cli/commands/actor.py`, `src/cleveragents/cli/commands/actor_run.py`. <!-- controller:fingerprint:90c71718ab3637ea -->
Owner

event occurred 2026-05-27T05:13:13.528581+00:00

Approved

Reviewed at commit 0bde46f.

Confidence: high.

*event occurred 2026-05-27T05:13:13.528581+00:00* **✅ Approved** Reviewed at commit `0bde46f`. Confidence: high. <!-- controller:fingerprint:94714cc2c2cacdd9 -->
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core!11252
No description provided.