{"record":{"id":"ce3b0d0825bbc86a","repo":"Hmbown/CodeWhale","slug":"dynamic-tool-call-call-id-has-an-indeterminate","errorCode":null,"errorMessage":"Dynamic tool call '{call_id}' has an indeterminate terminal receipt; inspect Runtime storage before retrying","messagePattern":"Dynamic tool call '(.+?)' 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":5667,"sourceCode":"        }\n    }\n\n    pub async fn deliver_dynamic_tool_result(\n        &self,\n        thread_id: &str,\n        turn_id: &str,\n        call_id: &str,\n        result: DynamicToolCallResult,\n    ) -> Result<bool> {\n        let admission = self.config_admission.read().await;\n        self.ensure_accepting_execution()?;\n        let claim = match self.claim_pending_dynamic_tool(thread_id, turn_id, call_id) {\n            PendingDynamicToolClaim::Claimed(claim) => claim,\n            PendingDynamicToolClaim::Settling(_) | PendingDynamicToolClaim::Missing => {\n                return Ok(false);\n            }\n            PendingDynamicToolClaim::Indeterminate => {\n                bail!(\n                    \"Dynamic tool call '{call_id}' has an indeterminate terminal receipt; inspect Runtime storage before retrying\"\n                );\n            }\n        };\n        let ack =\n            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> {","sourceCodeStart":5649,"sourceCodeEnd":5685,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/runtime_threads.rs#L5649-L5685","documentation":"deliver_dynamic_tool_result hit an indeterminate claim state: the call was neither cleanly claimable nor absent, so delivery is refused and the operator is directed to Runtime storage because a blind retry could double-settle the call.","triggerScenarios":"Thrown at crates/tui/src/runtime_threads.rs:5667 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect Runtime storage (turn items, task state) to determine whether the call actually settled before retrying.","Retry only after confirming the previous deliver attempt did not commit a terminal receipt."],"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"}