| commit | dc372f3f962771b1e30212847371db837d758c2e | [log] [tgz] |
|---|---|---|
| author | Josh Bleecher Snyder <josharian@gmail.com> | Fri May 02 18:35:48 2025 +0000 |
| committer | Josh Bleecher Snyder <josharian@gmail.com> | Fri May 02 11:53:13 2025 -0700 |
| tree | a7c98e40b6fcbb5d3aa8fed99f2363eea6182f78 | |
| parent | 6c2bb84114e1387e8751d6d2db33bcfc89f2dde5 [diff] [blame] |
loop: the end of a subconvo is not an End of Turn Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/loop/agent.go b/loop/agent.go index 315ff89..3076385 100644 --- a/loop/agent.go +++ b/loop/agent.go
@@ -597,7 +597,7 @@ } endOfTurn := false - if resp.StopReason != ant.StopReasonToolUse { + if resp.StopReason != ant.StopReasonToolUse && convo.Parent == nil { endOfTurn = true } m := AgentMessage{