Fix child startup readiness and ordered provider tools
Wait for shell bootstrap before dispatching child prompts, serialize provider preprocessing, and make permission callbacks idempotent. Restrict task lists to concrete multistep plans and stop inferring completion from tool activity. Update regression fixtures and resolve existing lint and test-layout failures. Verified formatting, both presubmit Clippy commands, and 354 targeted nextest tests.
This commit is contained in:
@@ -54,31 +54,5 @@ pub fn is_approved(response: &str) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_is_approved_exact() {
|
||||
assert!(is_approved("LGTM!"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_is_approved_with_whitespace() {
|
||||
assert!(is_approved(" LGTM! "));
|
||||
assert!(is_approved("\nLGTM!\n"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_is_approved_case_insensitive() {
|
||||
assert!(is_approved("lgtm!"));
|
||||
assert!(is_approved("Lgtm!"));
|
||||
assert!(is_approved("lgtm"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_is_not_approved_with_feedback() {
|
||||
assert!(!is_approved("LGTM! But also fix the typo."));
|
||||
assert!(!is_approved("1. Fix the loop\n2. Rename variable"));
|
||||
assert!(!is_approved(""));
|
||||
}
|
||||
}
|
||||
#[path = "prompt_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
Reference in New Issue
Block a user