fix(composio): repair v3 execute path and enable alias

This commit is contained in:
Chummy 2026-02-19 23:42:58 +08:00
parent a03ddc3ace
commit 4c249c579f
3 changed files with 70 additions and 12 deletions

View file

@ -648,7 +648,7 @@ impl Default for GatewayConfig {
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
pub struct ComposioConfig {
/// Enable Composio integration for 1000+ OAuth tools
#[serde(default)]
#[serde(default, alias = "enable")]
pub enabled: bool,
/// Composio API key (stored encrypted when secrets.encrypt = true)
#[serde(default)]
@ -4418,6 +4418,17 @@ enabled = true
assert_eq!(parsed.entity_id, "default");
}
#[test]
async fn composio_config_enable_alias_supported() {
let toml_str = r"
enable = true
";
let parsed: ComposioConfig = toml::from_str(toml_str).unwrap();
assert!(parsed.enabled);
assert!(parsed.api_key.is_none());
assert_eq!(parsed.entity_id, "default");
}
// ══════════════════════════════════════════════════════════
// SECRETS CONFIG TESTS
// ══════════════════════════════════════════════════════════