Option to add changeable defaults in goose-releases#7373
Option to add changeable defaults in goose-releases#7373dorien-koelemeijer merged 8 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for “changeable defaults” by introducing an optional defaults.yaml source that fills in missing config keys without overriding user-provided values, intended for goose-releases bundling.
Changes:
- Added
defaults_pathtoConfigand logic to load/mergedefaults.yamlwhen keys are missing. - Updated
get_paramdocumentation and adjustedall_valuesimplementation. - Added unit tests validating precedence: env > config > defaults, plus no-defaults behavior.
|
yep I think this is ok - did you test it with the app packaged via |
michaelneale
left a comment
There was a problem hiding this comment.
trigger a re-run and should build next time
I will test again to make sure. I don't think we can retire the old bundles.py script, because it has its own purpose (hardcoding env vars that the user should not be able to change). I will confirm this though to make 100% sure that this is the case. |
588c103 to
7192f3a
Compare
…m-cache * 'main' of github.com:block/goose: chore(release): release version 1.25.0 (minor) (#7263) Docs: Community all-stars and page update (#7483) fix: searchbar zindex modal overlay (#7502) blog: Order Lunch Without Leaving Your AI Agent (#7505) feat: gateway to chat to goose - telegram etc (#7199) Option to add changeable defaults in goose-releases (#7373) Fix out of order messages (#7472) fix: ensure latest session always displays in sidebar (#7489) docs: rename TLDR to Quick Install in MCP tutorials (#7493) docs: update Neighborhood extension page with video embed and layout improvements (#7473) feat: let AskAI Discord bot see channels in the server (#7480) Apps token limit (#7474) fix(apps): declare color-scheme to allow transparent MCP App iframes (#7479)
Signed-off-by: Oleg Levchenko <[email protected]>
Summary
Add option to add changeable defaults in goose-releases. Currently, there's an option to add defaults in
init-configandbundles.py- the former will only add defaults when there is no config file, and the latter will override everything (even the user's config). This PR adds defaults that will be added if the user hasn't set certain variables in their local config file, but will never override the user's config.A PR will be made in goose-releases to add the defaults.yaml file and add some initial variables.
Type of Change
AI Assistance
Testing
Local/manual testing using
just run-ui