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`. */
| 11495 | * Multi-project users can contain a session to its own project with |
| 11496 | * `config set auto_watch false`. */ |
| 11497 | static bool auto_watch_enabled(cbm_mcp_server_t *srv) { |
| 11498 | if (!srv->config) { |
| 11499 | return true; /* default on */ |
| 11500 | } |
| 11501 | return cbm_config_get_bool(srv->config, CBM_CONFIG_AUTO_WATCH, true); |
| 11502 | } |
| 11503 | |
| 11504 | /* Register the session project with the background watcher for ongoing |
| 11505 | * change detection — unless auto_watch is disabled. */ |
no test coverage detected