jdx/mise · error · eyre::Report
cache agent did not return an action prediction response
Error message
cache agent did not return an action prediction response
What it means
Error "cache agent did not return an action prediction response" thrown in jdx/mise.
Solutions
- Restart the cache agent and retry; the agent connection returned no prediction response.
- Check the cache agent logs for errors during the prediction request.
When it happens
Trigger: Thrown at src/cache/rustc.rs:134 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@6f52dcdf99 (2026-08-22).
Data as JSON: /api/errors/134715cf40cd83c8.
Report an issue: GitHub.
Appendix: source
Thrown at src/cache/rustc.rs:134
}
fn restore_predicted_result(
rustc: &OsStr,
invocation: &RustcInvocation,
outputs: &RustcOutputs,
working_dir: &Path,
restore_outputs: bool,
) -> Result<Option<CachedCompilation>> {
let task = std::env::var(session::TASK_ENV)
.wrap_err_with(|| format!("{} is not set", session::TASK_ENV))?;
let mut context = base_action_context(rustc, working_dir)?;
let invocation_digest = invocation.invocation_digest(&context)?;
let responses = session::request_agent(&[AgentRequest::FindActionPrediction {
task,
invocation: invocation_digest.clone(),
}])?;
let Some(response) = responses.into_iter().next() else {
bail!("cache agent did not return an action prediction response");
};
let prediction = match response {
AgentResponse::ActionPrediction {
prediction: Some(prediction),
} => prediction,
AgentResponse::ActionPrediction { prediction: None } => return Ok(None),
AgentResponse::Error { message } => bail!(message),
_ => bail!("cache agent returned an unexpected action prediction response"),
};
if prediction.adapter != "rustc" || prediction.invocation != invocation_digest {
bail!("cache agent returned an incompatible rustc action prediction");
}
let input_prediction: RustcInputPrediction = serde_json::from_str(&prediction.payload)?;
if String::from_utf8(canonical_json(&input_prediction)?)? != prediction.payload {
bail!("cache agent returned a non-canonical rustc action prediction");
}
let discovered = input_prediction.discover(working_dir, &context.path_mappings)?;
discovered.clone().apply_to(&mut context)?;View on GitHub (pinned to 6f52dcdf99)