{"record":{"id":"9d0f3d3ec3b35b0e","repo":"Hmbown/CodeWhale","slug":"workflow-dispatch-requires-sub-agents-for-provider","errorCode":null,"errorMessage":"Workflow dispatch requires sub-agents for provider {} ({})","messagePattern":"Workflow dispatch requires sub-agents for provider (.+?) \\((.+?)\\)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/lib.rs","lineNumber":10860,"sourceCode":"    plugin_registry: std::sync::Arc<crate::plugins::PluginRegistry>,\n) -> Result<(\n    crate::tools::workflow::WorkflowTool,\n    crate::tools::ToolContext,\n)> {\n    use std::sync::Arc;\n\n    use crate::client::DeepSeekClient;\n    use crate::core::authority::shell_policy_for_mode;\n    use crate::fleet::roster::FleetRoster;\n    use crate::tools::AgentToolSurfaceOptions;\n    use crate::tools::goal::new_shared_goal_state;\n    use crate::tools::subagent::{SubAgentRuntime, new_shared_subagent_manager_with_timeout};\n    use crate::tools::todo::new_shared_todo_list;\n    use crate::tui::app::AppMode;\n\n    let provider = config.api_provider();\n    if !config.subagents_enabled_for_provider(provider) {\n        bail!(\n            \"Workflow dispatch requires sub-agents for provider {} ({})\",\n            provider.as_str(),\n            config\n                .subagents_disabled_reason()\n                .unwrap_or(\"provider-specific sub-agent configuration disabled it\")\n        );\n    }\n\n    let yolo = config.yolo.unwrap_or(false);\n    let mode = if yolo {\n        AppMode::Yolo\n    } else {\n        AppMode::Operate\n    };\n    let allow_shell = yolo || config.allow_shell();\n    let shell_policy = shell_policy_for_mode(mode, allow_shell);\n    let trusted = crate::workspace_trust::WorkspaceTrust::load_for(workspace);\n    let mut context = crate::tools::ToolContext::with_auto_approve(","sourceCodeStart":10842,"sourceCodeEnd":10878,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/lib.rs#L10842-L10878","documentation":"Workflow tool construction failed because workflow dispatch fans prompts out to sub-agents, and the active provider's configuration does not enable the sub-agent tool surface for it. The parenthesized placeholder carries the provider detail. Without sub-agents a dispatch would silently no-op, so setup aborts.","triggerScenarios":"Thrown at crates/tui/src/lib.rs:10860 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the provider detail in the message","Enable sub-agents for that provider in configuration","Or run the workflow on a provider that supports sub-agents"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}