mind-self-run: restore the run document selection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3c258bd9db
commit
93f93c12a9
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ impl fmt::Display for SelfRunOutcome {
|
|||
fn her_run(mind: &dyn MindPort) -> Result<Option<(PipelineRef, String)>> {
|
||||
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))),
|
||||
|
|
|
|||
Loading…
Reference in a new issue