This commit is contained in:
Ian Gulliver
2026-10-20 22:02:59 -07:00
parent ccbbb5807f
commit 57324fe9a2
5 changed files with 31 additions and 53 deletions
+3 -23
View File
@@ -163,29 +163,9 @@ func (m *Manager) agyTurnEnded(ctx context.Context, l *live, p antigravityProces
m.mu.Unlock()
success := res.Status == "SUCCESS"
bounce := false
if success && l.implementer() {
var err error
bounce, err = m.takeBounce(ctx, l, final)
if err != nil {
return err
}
}
if bounce {
err := m.emit(ctx, l, "byre", "user.message", map[string]any{"text": proseQuestionNudge, "mid_turn": true, "bounce": true})
if err != nil {
return err
}
m.mu.Lock()
l.lastText = ""
m.mu.Unlock()
go func() {
err := p.s.Send(proseQuestionNudge)
if err != nil {
slog.Error("send prose question nudge", "session", l.id, "err", err)
}
}()
return nil
bounce, err := m.continueProseQuestion(ctx, l, p, final, success)
if err != nil || bounce {
return err
}
r := endResult{