We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d36271 commit e67b964Copy full SHA for e67b964
codex-rs/core/tests/suite/user_shell_cmd.rs
@@ -155,7 +155,10 @@ async fn user_shell_command_history_is_persisted_and_shared_with_model() -> anyh
155
})
156
.await;
157
assert_eq!(begin_event.source, ExecCommandSource::UserShell);
158
- let matches_last_arg = begin_event.command.last() == Some(&command);
+ let matches_last_arg = begin_event
159
+ .command
160
+ .last()
161
+ .is_some_and(|last_arg| last_arg == &command || last_arg.ends_with(&command));
162
let matches_split = shlex::split(&command).is_some_and(|split| split == begin_event.command);
163
assert!(
164
matches_last_arg || matches_split,
0 commit comments