mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(daemon): read config_set's values envelope in config.json reader Fixes #3192 config_set's default-scope handler writes {"values": {key: val}, ...}, but the daemon's readDaemonConfigFromFile() only ever checked scopes.project or the file's flat root — never `values`, which is where config_set actually puts default-scope writes. As a result, config_set daemon.idleSecs 0 silently had no effect on the running daemon, even though it "succeeded" and updated config.json. Add raw?.values as a fallback between scopes.project and the flat-root read, matching the fix the issue reporter verified against the pinned upstream sha. * fix(daemon): resolve each config key independently (scopes.project > values > root) Addresses review feedback on #3239 (Copilot): picking one whole object as "cfg" meant a key only present in the values envelope was still missed whenever scopes.project existed at all, even for unrelated keys, because cfg resolved to scopes.project and the per-key fallback only ever dropped to raw (root), never to raw.values. Resolve each daemon.* key independently through scopes.project -> values -> root so a config.json with keys spread across more than one shape (e.g. one project-scoped config_set call and one default-scope call) still resolves correctly. --------- Co-authored-by: SID-6921 <99672439+SID-6921@users.noreply.github.com>