{"record":{"id":"dff1e9722590721c","repo":"Hmbown/CodeWhale","slug":"thread-thread-id-not-found","errorCode":null,"errorMessage":"thread '{thread_id}' not found","messagePattern":"thread '(.+?)' not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/runtime_threads.rs","lineNumber":5691,"sourceCode":"            self.spawn_dynamic_tool_settlement(claim, DynamicToolTerminalOutcome::Resolved(result));\n        drop(admission);\n        Ok(Self::await_dynamic_tool_settlement(ack)\n            .await?\n            .result_accepted)\n    }\n\n    pub async fn submit_user_input(\n        &self,\n        thread_id: &str,\n        input_id: &str,\n        response: crate::tools::user_input::UserInputResponse,\n    ) -> Result<bool> {\n        let admission = self.config_admission.read().await;\n        self.ensure_accepting_execution()?;\n        let engine = {\n            let active = self.active.lock().await;\n            let Some(state) = active.engines.get(thread_id) else {\n                bail!(\"thread '{thread_id}' not found\");\n            };\n            state.engine.clone()\n        };\n        let request = match self.claim_pending_user_input(thread_id, input_id) {\n            PendingUserInputClaim::Claimed(request) => request,\n            PendingUserInputClaim::Missing | PendingUserInputClaim::Settling => {\n                return Ok(false);\n            }\n            PendingUserInputClaim::Indeterminate => {\n                bail!(\n                    \"User-input request '{input_id}' has an indeterminate terminal receipt; inspect Runtime storage before retrying\"\n                );\n            }\n        };\n\n        // This child task deliberately outlives the HTTP future. Once a\n        // request is claimed, client disconnect/cancellation cannot strand it\n        // between durable acceptance and engine delivery.","sourceCodeStart":5673,"sourceCodeEnd":5709,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/runtime_threads.rs#L5673-L5709","documentation":"Lookup guard on the user-input submission path: the thread id given to submit_user_input has no engine in the Runtime's active map, so no pending user-input request can exist for it. The thread was never started or has already terminated.","triggerScenarios":"Thrown at crates/tui/src/runtime_threads.rs:5691 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the thread before submitting user input, or verify the thread id.","Use the thread id returned by the Runtime when the input request was created."],"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"}