Skip to content

Hot-reload config.toml & preserve symlinks on write - #86

Merged
mikenikles merged 3 commits into
webstonehq:mainfrom
rogeruiz:rogeruiz/dx/config-hot-reload
Jul 10, 2026
Merged

Hot-reload config.toml & preserve symlinks on write#86
mikenikles merged 3 commits into
webstonehq:mainfrom
rogeruiz:rogeruiz/dx/config-hot-reload

Conversation

@rogeruiz

@rogeruiz rogeruiz commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds a filesystem watcher (notify) on the config parent directory that
debounces config.toml events (200 ms) and signals the main loop. On signal,
Config::load_strict reads the file and returns an error on parse failure. This
keeps the running config intact and flashes a warning. When a successful parse
occurs, App::reload_config gets called to rebuild prefs, saved_filters, and
week_start.

rogeruiz and others added 3 commits July 2, 2026 09:55
Adds a filesystem watcher (`notify`) on the config parent directory that
debounces `config.toml` events (200 ms) and signals the main loop. On signal,
`Config::load_strict` reads the file and returns an error on parse failure. This
keeps the running config intact and flashes a warning. When a successful parse
occurs, `App::reload_config` gets called to rebuild prefs, saved_filters, and
week_start.
@mikenikles

Copy link
Copy Markdown
Contributor

Awesome 🥰!

@mikenikles
mikenikles merged commit 5dfc7c8 into webstonehq:main Jul 10, 2026
1 check passed
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.

2 participants