feat(daemon): write config.toml.template on startup#451
Merged
Conversation
…ed parameters Adds a comprehensive CONFIG_TOML_TEMPLATE constant covering every configurable field (adapters, defaults, orchestrator, smith model profiles) with default values, inline comments, and commented-out examples. The daemon writes this to config_dir/config.toml.template on every start, so it auto-updates after upgrades without touching the user's config.toml. Paths::config_template_file() resolves the path.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CONFIG_TOML_TEMPLATE— a comprehensive TOML comment block covering every configurable parameter:[adapters.*],[adapters.*.env],[defaults],[orchestrator],[smith.models.*], and an env-var reference section for daemon/smith/operator env overrides.config_dir/config.toml.template(always overwritten, so it stays current after upgrades). Failure is non-fatal — a warning is logged and the daemon continues.Paths::config_template_file()returningconfig_dir/config.toml.template.DEFAULT_CONFIG_TOML(used byconstruct daemon default-config) is now an alias for the same template, so that command also prints the full documented version.Test plan
~/.config/construct/config.toml.templateis created and contains the expected sectionsconstruct daemon default-configprints the full templateconfig.tomlis not touched🤖 Generated with Claude Code