huskies: merge 986
This commit is contained in:
@@ -56,10 +56,10 @@ impl AgentPool {
|
||||
let path = worktree_path.clone();
|
||||
|
||||
// Run gate checks in a blocking thread to avoid stalling the async runtime.
|
||||
let (gates_passed, gate_output) = tokio::task::spawn_blocking(move || {
|
||||
let outcome = tokio::task::spawn_blocking(move || {
|
||||
// Step 1: Reject if worktree is dirty.
|
||||
crate::agents::gates::check_uncommitted_changes(&path)?;
|
||||
// Step 2: Run clippy + tests and return (passed, output).
|
||||
// Step 2: Run acceptance gates and return a typed GateOutcome.
|
||||
crate::agents::gates::run_acceptance_gates(&path)
|
||||
})
|
||||
.await
|
||||
@@ -67,8 +67,8 @@ impl AgentPool {
|
||||
|
||||
let report = CompletionReport {
|
||||
summary: summary.to_string(),
|
||||
gates_passed,
|
||||
gate_output,
|
||||
gates_passed: outcome.passed,
|
||||
gate_output: outcome.output,
|
||||
needs_commit_recovery: false,
|
||||
};
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ pub(in crate::agents::pool) async fn run_server_owned_completion(
|
||||
false,
|
||||
));
|
||||
}
|
||||
let (passed, output) = crate::agents::gates::run_acceptance_gates(&path)?;
|
||||
let outcome = crate::agents::gates::run_acceptance_gates(&path)?;
|
||||
// Restore stashed uncommitted changes.
|
||||
if stashed {
|
||||
let _ = std::process::Command::new("git")
|
||||
@@ -169,7 +169,7 @@ pub(in crate::agents::pool) async fn run_server_owned_completion(
|
||||
.current_dir(&path)
|
||||
.output();
|
||||
}
|
||||
Ok((passed, output, false))
|
||||
Ok((outcome.passed, outcome.output, false))
|
||||
})
|
||||
.await
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user