Skip to content

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

Open
rogeruiz wants to merge 1 commit into
webstonehq:mainfrom
rogeruiz:rogeruiz/dx/config-hot-reload
Open

Hot-reload config.toml & preserve symlinks on write#86
rogeruiz wants to merge 1 commit into
webstonehq:mainfrom
rogeruiz:rogeruiz/dx/config-hot-reload

Conversation

@rogeruiz

@rogeruiz rogeruiz commented Jul 2, 2026

Copy link
Copy Markdown

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.

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.
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