Read the current value of the agent proposals feature flag. Returns `false` if the flag has not been initialized (e.g. during unit tests), matching the documented default for the setting.
()
| 24 | /// Returns `false` if the flag has not been initialized (e.g. during unit |
| 25 | /// tests), matching the documented default for the setting. |
| 26 | pub fn agent_proposals_enabled() -> bool { |
| 27 | AGENT_PROPOSALS_ENABLED |
| 28 | .get() |
| 29 | .is_some_and(|flag| flag.load(Ordering::Relaxed)) |
| 30 | } |
| 31 | |
| 32 | /// Test-only helpers shared across crates' test modules. |
| 33 | #[cfg(any(test, feature = "test-helpers"))] |
no test coverage detected