acp: Add a basic test for ACP remoting (#38381)

Tests that the downstream project can see custom agents configured in
the remote server's settings, and that it constructs an appropriate
`AgentServerCommand`.

Release Notes:

- N/A
This commit is contained in:
Cole Miller
2025-09-18 00:02:44 -04:00
committed by GitHub
parent ea473eea87
commit eaa1cb0ca3
4 changed files with 102 additions and 1 deletions
+11
View File
@@ -487,6 +487,17 @@ impl SettingsStore {
Ok(())
}
/// Replaces current settings with the values from the given JSON.
pub fn set_raw_server_settings(
&mut self,
new_settings: Option<Value>,
cx: &mut App,
) -> Result<()> {
self.raw_server_settings = new_settings;
self.recompute_values(None, cx)?;
Ok(())
}
/// Get the configured settings profile names.
pub fn configured_settings_profiles(&self) -> impl Iterator<Item = &str> {
self.raw_user_settings