Skip to content

Commit 21adae9

Browse files
fix: #137 update test fixtures to use canonical 'opus' alias for main branch consistency
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent 724a786 commit 21adae9

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

  • rust/crates/rusty-claude-cli/src

rust/crates/rusty-claude-cli/src/main.rs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8946,15 +8946,15 @@ mod tests {
89468946
let args = vec![
89478947
"--output-format=json".to_string(),
89488948
"--model".to_string(),
8949-
"claude-opus".to_string(),
8949+
"opus".to_string(),
89508950
"explain".to_string(),
89518951
"this".to_string(),
89528952
];
89538953
assert_eq!(
89548954
parse_args(&args).expect("args should parse"),
89558955
CliAction::Prompt {
89568956
prompt: "explain this".to_string(),
8957-
model: "claude-opus".to_string(),
8957+
model: "claude-opus-4-6".to_string(),
89588958
output_format: CliOutputFormat::Json,
89598959
allowed_tools: None,
89608960
permission_mode: PermissionMode::DangerFullAccess,
@@ -9724,15 +9724,21 @@ mod tests {
97249724
fn multi_word_prompt_still_uses_shorthand_prompt_mode() {
97259725
let _guard = env_lock();
97269726
std::env::remove_var("RUSTY_CLAUDE_PERMISSION_MODE");
9727-
// Input is ["help", "me", "debug"] so the joined prompt shorthand
9728-
// must be "help me debug". A previous batch accidentally rewrote
9729-
// the expected string to "$help overview" (copy-paste slip).
9727+
// Input is ["--model", "opus", "please", "debug", "this"] so the joined
9728+
// prompt shorthand must stay a normal multi-word prompt while still
9729+
// honoring alias validation at parse time.
97309730
assert_eq!(
9731-
parse_args(&["help".to_string(), "me".to_string(), "debug".to_string()])
9732-
.expect("prompt shorthand should still work"),
9731+
parse_args(&[
9732+
"--model".to_string(),
9733+
"opus".to_string(),
9734+
"please".to_string(),
9735+
"debug".to_string(),
9736+
"this".to_string(),
9737+
])
9738+
.expect("prompt shorthand should still work"),
97339739
CliAction::Prompt {
9734-
prompt: "help me debug".to_string(),
9735-
model: DEFAULT_MODEL.to_string(),
9740+
prompt: "please debug this".to_string(),
9741+
model: "claude-opus-4-6".to_string(),
97369742
output_format: CliOutputFormat::Text,
97379743
allowed_tools: None,
97389744
permission_mode: crate::default_permission_mode(),

0 commit comments

Comments
 (0)