Files
codewhale/crates
Ousama Ben Younes db0ce5b966 refactor(tui): parse provider keys once in picker row build
Collapse the duplicated ApiProvider::parse call in
picker_model_rows_for_app: the filter previously parsed each key to
exclude the active provider, then the loop parsed it again via a
let-else to skip unknown keys. Use a single filter_map that parses
once, drops unknown keys and the active provider in one pass, and
carries the parsed provider through to the loop.

Pure readability change — unknown keys are still dropped and the
active provider is still excluded, so picker rows are identical.
Sort still keys on the provider string for deterministic ordering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 23:25:18 +00:00
..
2026-06-03 02:39:45 -07:00