{"record":{"id":"b84c06164f5bf58e","repo":"zed-industries/zed","slug":"listing-available-agents-is-not-supported-in-this","errorCode":null,"errorMessage":"Listing available agents is not supported in this environment","messagePattern":"Listing available agents is not supported in this environment","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":802,"sourceCode":"        cwd: Option<PathBuf>,\n        output_byte_limit: Option<u64>,\n        sandbox_wrap: Option<acp_thread::SandboxWrap>,\n        cx: &mut AsyncApp,\n    ) -> Task<Result<Rc<dyn TerminalHandle>>>;\n\n    fn create_subagent(&self, label: String, cx: &mut App) -> Result<Rc<dyn SubagentHandle>>;\n\n    fn resume_subagent(\n        &self,\n        _session_id: acp::SessionId,\n        _cx: &mut App,\n    ) -> Result<Rc<dyn SubagentHandle>> {\n        Err(anyhow::anyhow!(\n            \"Resuming subagent sessions is not supported\"\n        ))\n    }\n\n    /// Creates an independent sibling thread visible in the agent sidebar.\n    /// Unlike subagents, sibling threads are first-class threads that persist\n    /// and run in parallel without reporting results back to the parent.\n    fn create_sibling_thread(\n        &self,\n        request: SiblingThreadRequest,\n        cx: &mut AsyncApp,\n    ) -> Task<Result<SiblingThreadInfo>> {\n        let _ = request;\n        let _ = cx;\n        Task::ready(Err(anyhow::anyhow!(\n            \"Creating sibling threads is not supported in this environment\"\n        )))\n    }\n\n    /// Lists the agents and models available for use with `create_sibling_thread`.\n    fn list_available_agents(&self, cx: &mut App) -> Result<AvailableAgents> {\n        let _ = cx;\n        Err(anyhow::anyhow!(","sourceCodeStart":784,"sourceCodeEnd":820,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L784-L820","documentation":"Returned by the default (unsupported-environment) implementation of the agent-thread listing method. It is a capability sentinel: environments that don't implement listing agents/models get a ready Task carrying this error instead of real data.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:797 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Hide the agent picker in UIs backed by this environment","Only call the listing API on environments that implement it","Implement the listing method in the concrete ThreadEnvironment to add support"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}