mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-27 16:06:44 +00:00
fix: ChunkDelta thinking field in test initializers; fix parse_local_help_action ? operator
This commit is contained in:
1083
rust/Cargo.lock
generated
1083
rust/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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()),
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user