Skip to content

Commit d82ab13

Browse files
committed
fix(tui/tests): refresh snapshots after agent defaults change
1 parent 435b19c commit d82ab13

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

code-rs/core/src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,6 +2387,8 @@ impl Config {
23872387
let command_trimmed = a.command.trim();
23882388
if command_trimmed.is_empty() {
23892389
if let Some(spec) = agent_model_spec(&a.name) {
2390+
// Normalize legacy aliases to canonical slugs and default CLI.
2391+
a.name = spec.slug.to_string();
23902392
a.command = spec.cli.to_string();
23912393
} else {
23922394
a.command = a.name.clone();

code-rs/tui/tests/snapshots/vt100_chatwidget_snapshot__settings_help_overlay_closed.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ expression: closed
1818
| |
1919
| |
2020

21-
| Agents Enabled: 9/9 |
21+
| Agents Enabled: 10/10 |
2222
| + Configure linked agents and default task permissions. |
2323
| |
2424
| ↑ ↓ Move Enter Open Esc Close ? Help |

code-rs/tui/tests/snapshots/vt100_chatwidget_snapshot__settings_overlay_overview_layout.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ expression: output
1818
| |
1919
| |
2020

21-
| Agents Enabled: 9/9 |
21+
| Agents Enabled: 10/10 |
2222
| + Configure linked agents and default task permissions. |
2323
| |
2424
| ↑ ↓ Move Enter Open Esc Close ? Help |

0 commit comments

Comments
 (0)