herdr support: report idle/working/blocked, resume command, release
This commit is contained in:
1 parent
b223fd1f22
commit
789ee75a27
7 files changed
+287
-3
No files matched your search
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user