Skip to content

feat(daemon): write config.toml.template on startup#451

Merged
edwin-zvs merged 1 commit into
mainfrom
config-toml-template
Jun 23, 2026
Merged

feat(daemon): write config.toml.template on startup#451
edwin-zvs merged 1 commit into
mainfrom
config-toml-template

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • Adds 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.
  • On every daemon start, writes this template to 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.
  • Adds Paths::config_template_file() returning config_dir/config.toml.template.
  • DEFAULT_CONFIG_TOML (used by construct daemon default-config) is now an alias for the same template, so that command also prints the full documented version.

Test plan

  • Start a fresh daemon; verify ~/.config/construct/config.toml.template is created and contains the expected sections
  • Upgrade the binary and restart the daemon; verify the template file is updated (mtime changes, new content wins)
  • construct daemon default-config prints the full template
  • Existing config.toml is not touched

🤖 Generated with Claude Code

…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.
@edwin-zvs
edwin-zvs merged commit ac7b1fa into main Jun 23, 2026
1 check passed
@edwin-zvs edwin-zvs mentioned this pull request Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant