{"record":{"id":"2cccba615cc61490","repo":"Hmbown/CodeWhale","slug":"user-input-request-input-id-has-an-indetermina","errorCode":null,"errorMessage":"User-input request '{input_id}' has an indeterminate terminal receipt; inspect Runtime storage before retrying","messagePattern":"User-input request '(.+?)' has an indeterminate terminal receipt; inspect Runtime storage before retrying","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/runtime_threads.rs","lineNumber":5701,"sourceCode":"        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.\n        let manager = self.clone();\n        let thread_id = thread_id.to_string();\n        let (ack_tx, ack_rx) = oneshot::channel();\n        let worker = tokio::spawn(async move {\n            let result = manager\n                .settle_claimed_user_input(\n                    &thread_id,\n                    Some(engine),\n                    request,\n                    UserInputTerminalOutcome::Answered(response),","sourceCodeStart":5683,"sourceCodeEnd":5719,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/runtime_threads.rs#L5683-L5719","documentation":"User-input counterpart of the dynamic-tool guard: the input claim was in an indeterminate settling state, so the response is refused pending a storage inspection — answering blindly could satisfy a request that was already answered.","triggerScenarios":"Thrown at crates/tui/src/runtime_threads.rs:5701 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect Runtime storage to determine whether the response was already recorded before retrying.","Retry submit_user_input once storage shows no terminal receipt for the input id."],"exampleFix":null,"handlingStrategy":"retry","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"}