Audit of ccbbb58
This commit is contained in:
@@ -324,3 +324,23 @@ func (p antigravityProcess) drive(m *Manager, l *live) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Manager) continueProseQuestion(ctx context.Context, l *live, p agentProcess, final string, success bool) (bool, error) {
|
||||
if !success || !l.implementer() {
|
||||
return false, nil
|
||||
}
|
||||
bounce, err := m.takeBounce(ctx, l, final)
|
||||
if err != nil || !bounce {
|
||||
return false, err
|
||||
}
|
||||
m.mu.Lock()
|
||||
l.lastText = ""
|
||||
m.mu.Unlock()
|
||||
go func() {
|
||||
err := p.send(context.Background(), proseQuestionNudge, nil)
|
||||
if err != nil {
|
||||
slog.Error("send prose question nudge", "session", l.id, "err", err)
|
||||
}
|
||||
}()
|
||||
return true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user