mirror of
https://github.com/block/goose.git
synced 2026-10-19 09:34:12 +00:00
fix(cli): show tool output for tools without a priority annotation (#12436)
This commit is contained in:
parent
61830521ad
commit
b509488afd
1 changed files with 4 additions and 3 deletions
|
|
@ -628,9 +628,10 @@ fn render_tool_response(resp: &ToolResponse, debug: bool) {
|
|||
.unwrap_or(DEFAULT_MIN_PRIORITY);
|
||||
|
||||
let priority = annotations.and_then(|a| a.priority);
|
||||
if priority.is_some_and(|priority| priority < min_priority)
|
||||
|| (priority.is_none() && !debug)
|
||||
{
|
||||
// Tools without a priority annotation default to 0.0 (the same
|
||||
// as DEFAULT_MIN_PRIORITY), so they are shown at the default
|
||||
// threshold and only hidden when the user raises it.
|
||||
if priority.unwrap_or(0.0) < min_priority {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue