Make stdin_source validation message handler-neutral

CommandHandler also serves type="tool" nodes, so the runtime message now
says "Node '...'" to match the stdin_source_valid lint wording.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-07-29 11:24:13 -04:00
parent 0eda219376
commit cd6a614ed7
No known key found for this signature in database

View file

@ -233,7 +233,7 @@ fn validated_stdin_source(node: &Node) -> Result<Option<&str>, String> {
match node.context_key_attr("stdin_source") {
ContextKeyAttr::Absent => Ok(None),
ContextKeyAttr::Invalid => Err(format!(
"Command node '{}' requires 'stdin_source' to be a non-empty string",
"Node '{}' requires 'stdin_source' to be a non-empty string",
node.id
)),
ContextKeyAttr::Present(source) => Ok(Some(source)),