auto_watch config: gates background watcher registration (default on). * Multi-project users can contain a session to its own project with * `config set auto_watch false`. */
| 11175 | * Multi-project users can contain a session to its own project with |
| 11176 | * `config set auto_watch false`. */ |
| 11177 | static bool auto_watch_enabled(cbm_mcp_server_t *srv) { |
| 11178 | if (!srv->config) { |
| 11179 | return true; /* default on */ |
| 11180 | } |
| 11181 | return cbm_config_get_bool(srv->config, CBM_CONFIG_AUTO_WATCH, true); |
| 11182 | } |
| 11183 | |
| 11184 | /* Register the session project with the background watcher for ongoing |
| 11185 | * change detection — unless auto_watch is disabled. */ |
no test coverage detected