diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 23:47:40 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 23:47:40 +0300 |
| commit | 9709ba6938bd720fea6d8dd15346adf9db2b7f4b (patch) | |
| tree | 4da522fa3a5e43ef25bef2a12b12734caa839688 /src/detect/mod.rs | |
| parent | 36a4608603a82dbf32ec8a013dd47047cf02c6a3 (diff) | |
fix: detect kiro subagent approvals
refs #388
Diffstat (limited to 'src/detect/mod.rs')
| -rw-r--r-- | src/detect/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/detect/mod.rs b/src/detect/mod.rs index b9806b19..e5f84628 100644 --- a/src/detect/mod.rs +++ b/src/detect/mod.rs @@ -1900,6 +1900,12 @@ mod tests { } #[test] + fn kiro_blocked_on_subagent_tool_approval_prompt() { + let screen = " Please delegate to a sub-agent to search the web\n\n● Orchestrating (1 agent)\n esc to cancel\n ctrl+g open agent monitor\n ● web-research kiro_default ⚠ tool approval needed\n\n ◐ Tasks · 1 done · 2 remaining ctrl+x to expand\n──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\n ⚠ 3 tool approvals pending from subagents\n ❯ (a) Approve all pending\n (f) Approve all pending and auto-approve all future requests\n (c) Configure individually (agent monitor)\n (x) Exit (cancel subagents) %"; + assert_eq!(detect_state(Some(Agent::Kiro), screen), AgentState::Blocked); + } + + #[test] fn kiro_does_not_treat_stale_failure_spinner_as_working() { let screen = "● 1 MCP failure — see /mcp\n─────────────────────────────────────────────────────\nKiro · auto · ◔ 6%\n\n ask a question or describe a task ↵"; assert_eq!(detect_state(Some(Agent::Kiro), screen), AgentState::Idle); |
