{"record":{"id":"c1aa343b50b26700","repo":"Hmbown/CodeWhale","slug":"prompt-is-required","errorCode":null,"errorMessage":"prompt is required","messagePattern":"prompt is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/runtime_threads.rs","lineNumber":9823,"sourceCode":"        // monolithic frame overflowed it (test\n        // start_turn_accepts_dynamic_tools_and_environment_id on windows-latest,\n        // STATUS_STACK_OVERFLOW). Box::pin moves the whole frame to the heap so\n        // no caller's stack carries it; behavior is unchanged.\n        Box::pin(async move {\n        // Keep config publication and turn admission in one ordering domain.\n        // This read lease spans route/classifier resolution and the durable\n        // engine handoff, so a completed reload is a hard boundary: no later\n        // dispatch can carry its predecessor's URL, key, model, or policy.\n        let _config_admission = self.config_admission.read().await;\n        self.ensure_accepting_execution()?;\n        let image_blocks = if stored_image_bytes {\n            crate::image_attach::prepare_stored_images(&req.images)?\n        } else {\n            crate::image_attach::prepare_runtime_images(&req.images)?\n        };\n        let prompt = req.prompt.trim().to_string();\n        if prompt.is_empty() {\n            bail!(\"prompt is required\");\n        }\n\n        let thread = self.get_thread(thread_id).await?;\n        let turn_reasoning_preference = req\n            .reasoning_effort\n            .as_deref()\n            .map(parse_runtime_reasoning_effort)\n            .transpose()?;\n        let thread_reasoning_preference = thread\n            .reasoning_effort\n            .as_deref()\n            .map(parse_runtime_reasoning_effort)\n            .transpose()\n            .with_context(|| format!(\"Thread {thread_id} has invalid reasoning_effort\"))?;\n        let policy =\n            if req.mode.is_some() || req.permission_posture.is_some() || req.auto_approve.is_some()\n            {\n                runtime_policy_with_overrides(","sourceCodeStart":9805,"sourceCodeEnd":9841,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/runtime_threads.rs#L9805-L9841","documentation":"Admission guard inside the boxed start-turn future: the StartTurnRequest's prompt field is required and empty at this point, so the turn is rejected before route/classifier resolution and before any durable engine handoff.","triggerScenarios":"Thrown at crates/tui/src/runtime_threads.rs:9823 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply a non-empty prompt string on the turn request.","For continuations, use the rendered continuation prompt rather than an empty string."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}