Make every question blocking and drop inbox priority

This commit is contained in:
Ian Gulliver
2026-10-16 08:35:49 -07:00
parent 1427814014
commit 78cca2fcbe
25 changed files with 268 additions and 322 deletions
+2 -4
View File
@@ -80,7 +80,6 @@ type live struct {
stopping bool
interrupted bool
asked bool
askedBlock bool
bounced bool
compacting bool
wantCompact bool
@@ -489,7 +488,6 @@ 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
@@ -771,7 +769,7 @@ func (m *Manager) turnEnded(ctx context.Context, l *live, res endResult) error {
interrupted := l.interrupted
rateLimited := l.rateLimited
compacting := l.compacting
askedBlock := l.askedBlock
asked := l.asked
m.mu.Unlock()
finished := !res.isError && !interrupted && strings.TrimSpace(res.result) != ""
@@ -788,7 +786,7 @@ func (m *Manager) turnEnded(ctx context.Context, l *live, res endResult) error {
switch {
case handoff:
payload["handoff"] = true
case finished && !compacting && !askedBlock:
case finished && !compacting && !asked:
payload["summary"] = true
}
err = m.emit(ctx, l, agentActor, "turn.ended", payload)