herdr support: report idle/working/blocked, resume command, release

This commit is contained in:
hermes committed 2026-10-06 15:15:22 +00:00
1 parent b223fd1f22
commit 789ee75a27
7 files changed
+287 -3

No files matched your search

+7
View File
@@ -555,6 +555,10 @@ async fn main() -> Result<()> {
model: model.clone(),
effort: Some(effort),
};
if hx_core::herdr::init() {
hx_core::herdr::set_session(&path);
agent.bus.add(hx_core::herdr::Hook);
}
agent.set_model(model);
agent.set_effort(effort);
agent.set_system(context::system_prompt(
@@ -698,6 +702,7 @@ async fn main() -> Result<()> {
},
)
.await;
hx_core::herdr::release().await;
mgr.shutdown().await;
return r;
}
@@ -785,6 +790,7 @@ async fn main() -> Result<()> {
},
})
.await?;
hx_core::herdr::release().await;
mgr.shutdown().await;
return Ok(());
};
@@ -823,6 +829,7 @@ async fn main() -> Result<()> {
{
eprintln!("[lsp] {n}");
}
hx_core::herdr::release().await;
mgr.shutdown().await;
r?;
Ok(())