fix: don't silently fail on skill role composition extraction in llm nodes

This commit is contained in:
2026-06-04 09:09:55 -06:00
parent 97100bee29
commit 73a4499c68
9 changed files with 74 additions and 74 deletions
+2 -2
View File
@@ -457,7 +457,7 @@ async fn shell_execute(
}
'd' => {
let role = ctx.retrieve_role(app.as_ref(), EXPLAIN_SHELL_ROLE)?;
let input = Input::from_str(ctx, &eval_str, Some(role));
let input = Input::from_str(ctx, &eval_str, Some(role))?;
if input.stream() {
call_chat_completions_streaming(
&input,
@@ -502,7 +502,7 @@ async fn create_input(
) -> Result<Input> {
let text = text.unwrap_or_default();
let input = if file.is_empty() {
Input::from_str(ctx, &text, None)
Input::from_str(ctx, &text, None)?
} else {
Input::from_files_with_spinner(ctx, &text, file.to_vec(), None, abort_signal).await?
};