From 93f93c12a9f981020d316040499a0a87213d2127 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 04:35:46 +0100 Subject: [PATCH] mind-self-run: restore the run document selection Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/self_run.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/mind-body/src/self_run.rs b/crates/mind-body/src/self_run.rs index e1ec554..ca743b3 100644 --- a/crates/mind-body/src/self_run.rs +++ b/crates/mind-body/src/self_run.rs @@ -293,6 +293,7 @@ impl fmt::Display for SelfRunOutcome { fn her_run(mind: &dyn MindPort) -> Result> { let mut held = holders(mind, mind.instance(), RunTurn::SelfRun)?; let (Some(run), None) = (held.pop(), held.pop()) else { return Ok(None) }; + let one = Selection { keys: Some(vec![run.id.id.0.clone()]), projection: "document".into(), ..Selection::default() }; let PipelinePageItems::Documents(views) = mind.query(&one)?.items else { bail!("the mind answered headers to a document selection") }; match views.into_iter().next().map(|view| view.document) { Some(PipelineDocument::Run(document)) => Ok(Some((run.id, document.budget_usd.0))),