Bounce prose questions only when they ask the human to decide

This commit is contained in:
Ian Gulliver
2026-10-18 11:59:22 -07:00
parent aac99c48f9
commit 2658dcbfc4
6 changed files with 71 additions and 11 deletions
+9
View File
@@ -177,6 +177,7 @@ private final class Ctx {
var drawn: [Row]?
var quiet = false
var handoff: Row?
var reply: Row?
}
@MainActor
@@ -433,6 +434,13 @@ final class TranscriptBuilder {
}
continue
}
if ev.kind == "user.message" && bool(p, "bounce") {
if let reply = ctx.reply {
(sink ?? root).rows.removeAll { $0 === reply }
ctx.held?.rows.removeAll { $0 === reply }
}
continue
}
if ev.kind == "session.context" && sink != nil {
continue
}
@@ -486,6 +494,7 @@ final class TranscriptBuilder {
ctx.run = nil
if ev.kind == "agent.message" && parent.isEmpty {
ctx.drawn = nil
ctx.reply = row
}
if ev.kind == "turn.ended" {
ctx.open = false