Skip to main content

list_agent_skills

Function list_agent_skills 

Source
pub(crate) fn list_agent_skills(
    state: &AppState,
    cmd: CommandListAgentSkillsData,
) -> Result<Vec<AgentSkill>, String>
Expand description

listagentskills → return this agent’s EFFECTIVE skills (legacy db_agent_skills, or its own ref-bound db_skills + globals when any own refs exist — see Store::effective_skills). Window-scoped (no check_s1) because this is called from agent-model.ts’s pre-launch launchAgentDefinition, before any agent connection exists to authenticate as — that’s also exactly why this must reuse the same merge algorithm as the Rust write_agent_config_files path rather than the frontend calling the agent-scoped skill.list RPC directly (it would fail check_s1 pre- launch). Previously returned only agent_skill_list (legacy-only), silently hiding every standalone/Memory → Skills skill from the actual launch flow (reagent P0 on PR #2322).