mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 14:53:21 +00:00
`watch::watch` has been written, tested and unreachable from the CLI since it landed. It now has a command: `cosmic-conf watch [--config <path>]`, sharing `--config` with `apply` and refusing `--diff`, which means nothing for a daemon whose whole job is to notice a change and write it. Exposing it made an existing wart user-visible: a single bad save reported itself three or four times. One write arrives as several inotify events -- modify, close_write, and a rename when the editor writes atomically -- and they do not all land inside one 250ms debounce window, so each produced its own compile and its own copy of the same diagnostic. Consecutive identical errors are now printed once, reset on any successful compile so the same error after a good one is still news. Verified against an isolated XDG_CONFIG_HOME, driving a real daemon rather than calling `compile` directly, since none of this is reachable from the unit tests: applies at startup, recompiles on edit, notices edits to sourced files, picks up a `source` line added at runtime, survives a malformed edit with the last good value intact, reports it exactly once, does not suppress a *different* error, and resumes after a fix. Ten checks, all passing.