优化Agent Connect时的agent状态获取

This commit is contained in:
xintaofei
2026-03-17 23:24:07 +08:00
parent ad062aef96
commit acbdabe9e4
6 changed files with 68 additions and 7 deletions

View File

@@ -244,6 +244,15 @@ pub struct AcpAgentInfo {
pub codex_config_toml: Option<String>,
}
/// Lightweight status info for a single agent, used by connect() pre-check.
#[derive(Debug, Clone, Serialize)]
pub struct AcpAgentStatus {
pub agent_type: crate::models::agent::AgentType,
pub available: bool,
pub enabled: bool,
pub installed_version: Option<String>,
}
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum AgentSkillScope {