feat(config): add hot-reload via watchfiles (#78)

This commit is contained in:
banteg
2026-01-10 02:41:05 +04:00
committed by GitHub
parent 910e7a6d98
commit 801d04cfdf
12 changed files with 659 additions and 25 deletions
+3
View File
@@ -56,6 +56,8 @@ global config `~/.takopi/takopi.toml`
```toml
default_engine = "codex"
# optional: reload config changes without restarting
watch_config = true
# optional, defaults to "telegram"
transport = "telegram"
@@ -90,6 +92,7 @@ extra_args = ["--no-color"]
```
note: configs with top-level `bot_token` / `chat_id` are migrated to `[transports.telegram]` on startup.
note: `watch_config` reloads runtime settings (projects, engines, plugins). transport changes still require a restart.
## projects