`--quiet` doesn't suppress non-responce output
Describe the bug
There is also some info about recipe params:
% goose run --recipe page-slug.goose.yaml --params path="root/page/subpage" --params title="My Super Title" --quiet
Loading recipe: Page Slug Generator
Parameters used to load this recipe:
path: root/page/subpage
title: My Super Title
my-super-title
% goose run --recipe page-slug.goose.yaml --params path="root/page/subpage" --params title="My Super Title" --quiet | pbcopy
Loading recipe: Practicum Page Slug Generator
Parameters used to load this recipe:
% pbpaste
title: My Super Title
path: root/page/subpage
my-super-title
To Reproduce Steps to reproduce the behavior:
- Write any recipe with params
- Run it with
--quiet - See some non-responce output about params
Expected behavior Only last line in output
Please provide following information:
- OS & Arch: macOS, M3
- Interface: CLI
- Version: 1.12.1
- Extensions enabled: no
- Provider & Model: any
I agree this should respect the --quiet, but meanwhile, I think we have two things that could help. we have the final output for recipes that reports the results of a recipe as the last line as a jsonl. and also I think these things are all send to stderr, so if you just want to capture the results, that is a way to do it.
does that work?
Here's a quick fix: https://github.com/block/goose/pull/5743
But +1 on the structured output workaround. I did something like this for one of my recipes with a single output.
https://github.com/block/goose-discord/blob/main/recipes/goose_help_mcp.yaml#L42 and then extracted that key.
Structured output is very useful in general vs just relying on the last llm message.