Audit of ccbbb58
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user