Skip to content

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

refactor(agent/debug): use agent's resolved definition for flow archetype

Steven Enamakeldfb2a33e8010
diff --git a/crates/openhuman-core/src/agent/debug/mod.rs b/crates/openhuman-core/src/agent/debug/mod.rs
index a092038a5f..19d14e738c 100644
--- a/crates/openhuman-core/src/agent/debug/mod.rs
+++ b/crates/openhuman-core/src/agent/debug/mod.rs
@@ -192,13 +192,11 @@ async fn render_via_session(config: &Config, agent_id: &str) -> Result<DumpedPro
agent.refresh_delegation_tools();
#[cfg(feature = "flows")]
- let flow_archetype_text = match AgentDefinitionRegistry::current()
- .and_then(|registry| registry.get(agent_id).cloned())
- {
+ let flow_archetype_text = match agent.resolved_definition() {
Some(definition) => {
crate::agent::prompts::flow_archetype::load_for_definition(
Some(config),
- &definition,
+ definition.as_ref(),
)
.await?
}