Skip to content

Commit 0c660cf

Browse files
committed
fix(core/tests): make slash agent test deterministic
1 parent aacad57 commit 0c660cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code-rs/core/src/slash_commands.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ mod tests {
359359
// Create test agent configurations
360360
let agents = vec![
361361
AgentConfig {
362-
name: "claude-sonnet-4.5".to_string(),
363-
command: "claude".to_string(),
362+
name: "code-gpt-5.2".to_string(),
363+
command: "code".to_string(),
364364
args: vec![],
365365
read_only: false,
366366
enabled: true,
@@ -388,7 +388,7 @@ mod tests {
388388
let result = handle_slash_command("/plan test task", Some(&agents));
389389
assert!(result.is_some());
390390
let prompt = result.unwrap();
391-
assert!(prompt.contains("claude-sonnet-4.5"));
391+
assert!(prompt.contains("code-gpt-5.2"));
392392
assert!(!prompt.contains("test-gemini"));
393393
}
394394
}

0 commit comments

Comments
 (0)