{"record":{"id":"d40311ae40a500ca","repo":"warpdotdev/warp","slug":"this-feature-is-not-enabled-d40311","errorCode":null,"errorMessage":"This feature is not enabled","messagePattern":"This feature is not enabled","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/harness_support.rs","lineNumber":29,"sourceCode":"    ReportArtifactCommand, ReportExternalReferenceArgs, ReportShutdownArgs, TaskStatus,\n};\nuse warp_core::features::FeatureFlag;\nuse warpui::platform::TerminationMode;\nuse warpui::{AppContext, ModelHandle, SingletonEntity};\n\nuse super::common::set_ambient_task_context_from_run_id;\nuse crate::ai::ambient_agents::AmbientAgentTaskId;\nuse crate::ai::artifacts::Artifact;\nuse crate::server::server_api::ServerApiProvider;\n\n/// Run harness-support commands.\npub fn run(\n    ctx: &mut AppContext,\n    global_options: GlobalOptions,\n    args: HarnessSupportArgs,\n) -> Result<()> {\n    if !FeatureFlag::AgentHarness.is_enabled() {\n        return Err(anyhow::anyhow!(\"This feature is not enabled\"));\n    }\n\n    // Store the run ID so that it's included on all server requests, along with a workload token.\n    let task_id = set_ambient_task_context_from_run_id(ctx, &args.run_id)?;\n    let runner = ctx.add_singleton_model(|_| HarnessSupportRunner);\n\n    match args.command {\n        HarnessSupportCommand::Ping => ping(ctx, runner, task_id, global_options.output_format),\n        HarnessSupportCommand::ReportArtifact(report_args) => {\n            report_artifact(ctx, runner, report_args, global_options.output_format)\n        }\n        HarnessSupportCommand::ReportExternalReference(args) => {\n            report_external_reference(ctx, runner, args, global_options.output_format)\n        }\n        HarnessSupportCommand::NotifyUser(notify_args) => {\n            notify_user(ctx, runner, notify_args, global_options.output_format)\n        }\n        HarnessSupportCommand::FinishTask(finish_args) => {","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/harness_support.rs#L11-L47","documentation":"Error \"This feature is not enabled\" thrown in warpdotdev/warp.","triggerScenarios":"Thrown at app/src/ai/agent_sdk/harness_support.rs:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}