Skip to content

Commit c8e93c3

Browse files
committed
wip
1 parent 8efee81 commit c8e93c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/httpapi/server.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ func (s *Server) StartSnapshotLoop(ctx context.Context) {
332332
time.Sleep(5 * time.Second)
333333
}
334334

335+
// If we still have it as stable, go ahead.
336+
if convertStatus(currentStatus) != AgentStatusStable {
337+
break
338+
}
339+
335340
if err := s.conversation.SendMessage(FormatMessage(s.agentType, s.conversation.InitialPrompt)...); err != nil {
336341
s.logger.Error("Failed to send initial prompt", "error", err)
337342
} else {

0 commit comments

Comments
 (0)