File no report for a turn that asks a blocking question

This commit is contained in:
Ian Gulliver
2026-10-15 10:41:18 -07:00
parent b6df27f085
commit 535f5579f9
5 changed files with 26 additions and 7 deletions
+4 -1
View File
@@ -80,6 +80,7 @@ type live struct {
stopping bool
interrupted bool
asked bool
askedBlock bool
bounced bool
compacting bool
wantCompact bool
@@ -599,6 +600,7 @@ func (m *Manager) message(ctx context.Context, l *live, actor, text string, imag
m.mu.Lock()
l.interrupted = false
l.asked = false
l.askedBlock = false
l.bounced = false
l.wantCompact = false
l.compacting = compacting
@@ -808,6 +810,7 @@ func (m *Manager) handle(ctx context.Context, l *live, ev claude.Event) error {
interrupted := l.interrupted
rateLimited := l.rateLimited
compacting := l.compacting
askedBlock := l.askedBlock
m.mu.Unlock()
finished := !res.IsError && !interrupted && strings.TrimSpace(res.Result) != ""
@@ -825,7 +828,7 @@ func (m *Manager) handle(ctx context.Context, l *live, ev claude.Event) error {
switch {
case handoff:
payload["handoff"] = true
case finished && !compacting:
case finished && !compacting && !askedBlock:
payload["inbox_item_id"] = m.fileSummary(l, res.Result)
}
err = m.emit(ctx, l, agentActor, "turn.ended", payload)