fix: ChunkDelta thinking field in test initializers; fix parse_local_help_action ? operator

This commit is contained in:
YeonGyu-Kim
2026-05-25 12:26:32 +09:00
parent f003a108e3
commit e7d5d08892
3 changed files with 1060 additions and 27 deletions

1083
rust/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1857,6 +1857,7 @@ mod tests {
delta: super::ChunkDelta {
content: None,
reasoning_content: Some("think".to_string()),
thinking: None,
tool_calls: Vec::new(),
},
finish_reason: None,
@@ -1873,6 +1874,7 @@ mod tests {
delta: super::ChunkDelta {
content: Some(" answer".to_string()),
reasoning_content: None,
thinking: None,
tool_calls: Vec::new(),
},
finish_reason: Some("stop".to_string()),

View File

@@ -882,7 +882,7 @@ fn parse_args(args: &[String]) -> Result<CliAction, String> {
// #684: --help before subcommand should still route to subcommand-specific
// help when the subcommand is one of the local-help-topic commands.
if let Some(action) = parse_local_help_action(&rest, output_format) {
return action?;
return action;
}
// When --help was consumed before the subcommand, rest has no help flag.
// If rest is a simple local-help subcommand with no extra args, route there.