File no report for a turn that asks a blocking question
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user