CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

main is red on macOS and Windows: nine reasoning-effort tests still assert the pre-ladder vocabulary

Open Lstarsky0 opened this issue 3 months ago • 1 comments

main is red on macOS and Windows: nine reasoning-effort tests still assert the pre-ladder vocabulary.

Not a flake and not the #5355 family — it bisects to one commit and reproduces identically every run.

Where it is

Current main c9b9559a7, CI's own run 31778394006:

Test (macos-latest):   failure   07:02:29 -> 07:22:20
Test (windows-latest): failure   07:02:29 -> 07:18:51
Test (ubuntu-latest):  success   07:02:29 -> 07:02:32   (3s — Linux tests are on CNB)

The nine, from that run's log:

commands::groups::config::config::tests::config_reasoning_effort_uses_codex_provider_labels
fleet::profile::tests::profile_loader_normalizes_reasoning_aliases
settings::tests::reasoning_effort_setting_normalizes_and_clears
terminal_mode_tests::cli_reasoning_effort_normalizes_aliases_and_rejects_typos
tui::app::tests::fixed_route_thinking_cycle_persists_raw_preference
tui::app::tests::reasoning_cycle_persists_through_the_same_owner_as_the_picker
tui::model_picker::tests::picker_keeps_default_when_catalog_has_no_reasoning_options
tui::ui::tests::ctrl_t_key_event_reaches_reasoning_effort_cycle
tui::views::tests::config_view_filter_accepts_j_k_and_unicode_case

Bisect

cargo test -p codewhale-tui --lib, same machine, full suite each time:

commit failures
11bbe7063 keep 0.9.8 CI honest 1
6f6c35183 walk each model's real thinking ladder 10
c9b9559a7 current main 10

The constant 1 is tools::pdf::tests::shared_adapter_forwards_page_window_and_returns_stdout, which is local to my machine — it is not in CI's failure set, so ignore it here. The nine arrive exactly at 6f6c35183 and are the same nine CI reports.

Mechanism

Four groups, and in every one the actual value is what the ladder commit says it now intends. Ran each and recorded the assertion:

test left (actual) right (expected)
settings::…normalizes_and_clears Some("xhigh") Some("max")
fleet::profile::…normalizes_reasoning_aliases Some("xhigh") Some("max")
terminal_mode_tests::cli_…rejects_typos Some("xhigh") Some("max")
…config_reasoning_effort_uses_codex_provider_labels XHigh Max
tui::ui::ctrl_t_key_event_reaches_reasoning_effort_cycle Low High
tui::app::reasoning_cycle_persists_through_the_same_owner_as_the_picker Low High
tui::app::fixed_route_thinking_cycle_persists_raw_preference Auto Off
tui::model_picker::picker_keeps_default_… ["auto","low","medium","high"] ["auto","off","high","max"]
tui::views::config_view_filter_… […, "reasoning_effort", …] list without it

The first four are the vocabulary change. 6f6c35183 gave xhigh and ultra their own rungs in parse_strict (crates/tui/src/tui/app/types.rs:184), where they used to collapse into Max:

// 11bbe7063
"max" | "maximum" | "xhigh" | "ultra" | "ultracode" => Ok(Self::Max),

// c9b9559a7
"xhigh" => Ok(Self::XHigh),
"ultra" | "ultracode" => Ok(Self::Ultra),
"max" | "maximum" => Ok(Self::Max),

as_setting() round-trips those to "xhigh" / "ultra", so anything asserting the old collapse fails.

The next four are the cycle itself — the commit message's "cycle picker_efforts_for_route instead of the DeepSeek off/high/max shortcut" is exactly the difference between each left and right column. The last is reasoning_effort becoming a visible config-view row.

So the behaviour looks right to me and the assertions are the stale half. Nine tests pinning the shortcut the commit set out to remove.

Why CI hasn't been shouting

Nothing has completed a heavy run on main between the ladder commit and now:

commit run
6f6c35183 ladder no run recorded
bc544f946 cancelled
5d35e01ef cancelled
a9acd63e1 success — but all three Test legs finished in 4–5s, so this is the light-change echo, not a test run
c9b9559a7 failure (above)

a9acd63e1 is the one worth flagging: a green "Test (macos-latest)" that ran for five seconds is the skip path preserving the required context, and reading it as a passing suite is an easy mistake to make from the checks list alone. I made it myself an hour ago before looking at the durations.

Repro

cargo test -p codewhale-tui --lib settings::tests::reasoning_effort_setting_normalizes_and_clears

Fails on a clean HOME and with --all-features, so it isn't the config-fixture family from #5355.

Offer

I'll start on it — every left column above is derivable from the ladder, so re-pinning the nine is mechanical rather than a guess. Two spots where I'd be following the code rather than a stated intent, and where I'd rather you correct me in review than have me quietly pick:

  • ultracode now settles on "ultra" instead of "max". Deliberate, or should the alias keep landing on max?
  • fixed_route_thinking_cycle_persists_raw_preference moves Off to Auto, which changes what a fixed route starts from rather than just what it's called.

If you'd rather own this one, say so and I'll drop it — you've got more context on the ladder than I do.

Noticed while running the full suite as the local gate for #5376; that PR's macOS and Windows legs inherit these nine and are red for this reason, not its own.

Lstarsky0 avatar Aug 14 '26 07:08 Lstarsky0

Thanks @Lstarsky0 for the report.

This issue is staying open for maintainer triage. CodeWhale gets better because people bring us real edge cases from real machines, providers, regions, and workflows.

If you can add a reproduction, logs, version output, screenshots, or the provider/model involved, that makes it much easier for us to verify and harvest the fix. Maintainers may comment /lgtmi to mark recurring issue reporters as approved so this intake note is skipped next time.

github-actions[bot] avatar Aug 14 '26 07:08 github-actions[bot]