Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(subagent_host): rename shadowed options binding in awaiting user outcome

Steven Enamakelfe604588bd0a
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
index b4ada052f5..cece350703 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
@@ -41,9 +41,11 @@ pub(super) fn host_outcome_to_neutral(
let status = match outcome.status {
SubagentRunStatus::Completed => SubagentOutcomeKind::Completed,
SubagentRunStatus::AwaitingUser {
- question, options, ..
+ question,
+ options: answer_options,
+ ..
} => {
- extensions.insert("options".into(), serde_json::json!(options));
+ extensions.insert("options".into(), serde_json::json!(answer_options));
SubagentOutcomeKind::AwaitingInput(SubagentPause {
reason: question,
resume: SubagentResume {