Bounce prose questions only when they ask the human to decide
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user