Hmbown/CodeWhale · error
thread ' ' not found
Error message
thread '{thread_id}' not found What it means
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.
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.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/runtime_threads.rs:5691 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/dff1e9722590721c.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/runtime_threads.rs:5691
self.spawn_dynamic_tool_settlement(claim, DynamicToolTerminalOutcome::Resolved(result));
drop(admission);
Ok(Self::await_dynamic_tool_settlement(ack)
.await?
.result_accepted)
}
pub async fn submit_user_input(
&self,
thread_id: &str,
input_id: &str,
response: crate::tools::user_input::UserInputResponse,
) -> Result<bool> {
let admission = self.config_admission.read().await;
self.ensure_accepting_execution()?;
let engine = {
let active = self.active.lock().await;
let Some(state) = active.engines.get(thread_id) else {
bail!("thread '{thread_id}' not found");
};
state.engine.clone()
};
let request = match self.claim_pending_user_input(thread_id, input_id) {
PendingUserInputClaim::Claimed(request) => request,
PendingUserInputClaim::Missing | PendingUserInputClaim::Settling => {
return Ok(false);
}
PendingUserInputClaim::Indeterminate => {
bail!(
"User-input request '{input_id}' has an indeterminate terminal receipt; inspect Runtime storage before retrying"
);
}
};
// This child task deliberately outlives the HTTP future. Once a
// request is claimed, client disconnect/cancellation cannot strand it
// between durable acceptance and engine delivery.View on GitHub (pinned to 73e0f67d83)