{"record":{"id":"d177bd34a3836455","repo":"warpdotdev/warp","slug":"failed-to-delete-environment","errorCode":null,"errorMessage":"Failed to delete environment","messagePattern":"Failed to delete environment","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/environment.rs","lineNumber":1097,"sourceCode":"\n    fn execute_delete(type_and_id: CloudObjectTypeAndId, ctx: &mut ModelContext<Self>) {\n        UpdateManager::handle(ctx).update(ctx, |update_manager, ctx| {\n            update_manager.delete_object_by_user(type_and_id, ctx);\n        });\n\n        // Listen to the UpdateManager for a completed object deletion\n        ctx.subscribe_to_model(&UpdateManager::handle(ctx), move |_, _, event, ctx| {\n            if let UpdateManagerEvent::ObjectOperationComplete { result } = event\n                && matches!(result.operation, ObjectOperation::Delete { .. })\n            {\n                match result.success_type {\n                    OperationSuccessType::Success => {\n                        println!(\"Environment deleted successfully\");\n                        ctx.terminate_app(warpui::platform::TerminationMode::ForceTerminate, None);\n                    }\n                    _ => {\n                        super::report_fatal_error(\n                            anyhow::anyhow!(\"Failed to delete environment\"),\n                            ctx,\n                        );\n                    }\n                }\n            }\n        });\n    }\n}\n\nimpl warpui::Entity for EnvironmentCommandRunner {\n    type Event = ();\n}\nimpl SingletonEntity for EnvironmentCommandRunner {}\n\n/// Environment information that's shown in the `list` command.\n#[derive(Serialize)]\nstruct EnvironmentInfo {\n    id: String,","sourceCodeStart":1079,"sourceCodeEnd":1115,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/environment.rs#L1079-L1115","documentation":"Error \"Failed to delete environment\" thrown in warpdotdev/warp.","triggerScenarios":"Thrown at app/src/ai/agent_sdk/environment.rs:1097 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"}