feat: implement abort mechanism for workflows and subagents

This commit is contained in:
asepharyana
2026-07-13 09:09:23 +07:00
parent 65647ce517
commit 104b0daf4c
5 changed files with 104 additions and 32 deletions
+3
View File
@@ -186,6 +186,7 @@ impl Tool for CompanyPipeline {
.and_then(|v| v.as_str())
.unwrap_or("full");
let no_abort: Option<std::sync::Arc<std::sync::atomic::AtomicBool>> = None;
match mode {
"quick" => {
crate::app::workflow::company::run_company_pipeline_quick(
@@ -193,6 +194,7 @@ impl Tool for CompanyPipeline {
&ctx.session_dir,
&ctx.workspaces,
ctx.turn_events.as_ref(),
&no_abort,
)
}
_ => {
@@ -201,6 +203,7 @@ impl Tool for CompanyPipeline {
&ctx.session_dir,
&ctx.workspaces,
ctx.turn_events.as_ref(),
&no_abort,
)
}
}