()
| 487 | |
| 488 | #[test] |
| 489 | fn test_dispatch_model_switch() { |
| 490 | let reg = CommandRegistry::new(); |
| 491 | let ctx = test_ctx(); |
| 492 | let out = reg |
| 493 | .dispatch("/model anthropic/claude-sonnet-4-20250514", &ctx) |
| 494 | .unwrap(); |
| 495 | assert!(matches!(out.action, Some(CommandAction::SwitchModel(_)))); |
| 496 | } |
| 497 | |
| 498 | #[test] |
| 499 | fn test_dispatch_clear() { |