Split external agent flags (#36499)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-08-19 14:25:25 -03:00 committed by GitHub
parent d1cabef2bf
commit e092aed253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 56 deletions

View file

@ -95,6 +95,12 @@ impl FeatureFlag for AcpFeatureFlag {
const NAME: &'static str = "acp";
}
pub struct ClaudeCodeFeatureFlag;
impl FeatureFlag for ClaudeCodeFeatureFlag {
const NAME: &'static str = "claude-code";
}
pub trait FeatureFlagViewExt<V: 'static> {
fn observe_flag<T: FeatureFlag, F>(&mut self, window: &Window, callback: F) -> Subscription
where