Improve delegate (#377)

* Improve delegate

* fix stale log regexes in delegate tests and add test-coupling comments

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Colin McDonnell
2026-02-23 23:41:27 +00:00
committed by pullfrog[bot]
parent a7bd746f21
commit 2017922780
30 changed files with 853 additions and 522 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ function validator(result: AgentResult): ValidationCheck[] {
const setOutputCalled = output !== null;
const linesMatch = output ? /LINES=(\d+)/i.exec(output) : null;
const hasLineCount = linesMatch !== null && parseInt(linesMatch[1], 10) > 0;
const delegationOccurred = /» delegating subagent=/i.test(agentOutput);
const delegationOccurred = /» delegating \d+ task/i.test(agentOutput);
return [
{ name: "set_output", passed: setOutputCalled },