Skip to content

Commit 0393c07

Browse files
committed
wip
1 parent 21629b8 commit 0393c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/httpapi/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (s *Server) StartSnapshotLoop(ctx context.Context) {
327327
// Send initial prompt when agent becomes stable for the first time
328328
if !s.conversation.InitialPromptSent && convertStatus(currentStatus) == AgentStatusStable {
329329

330-
fmt.Printf("AgentType: %s", mf.AgentTypeOpencode)
330+
fmt.Printf("AgentType: %s\n", mf.AgentTypeOpencode)
331331

332332
// If agent type is opencode
333333
if s.agentType == mf.AgentTypeOpencode {
@@ -336,7 +336,7 @@ func (s *Server) StartSnapshotLoop(ctx context.Context) {
336336

337337
// If we still have it as stable, go ahead.
338338
if convertStatus(s.conversation.Status()) != AgentStatusStable {
339-
break
339+
continue
340340
}
341341

342342
if err := s.conversation.SendMessage(FormatMessage(s.agentType, s.conversation.InitialPrompt)...); err != nil {

0 commit comments

Comments
 (0)