Skip to content

Commit 5559c59

Browse files
committed
chore: remove the hack, only keep the parsing
1 parent c77c7d7 commit 5559c59

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/httpapi/server.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,6 @@ 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-
// If agent type is opencode
331-
if s.agentType == mf.AgentTypeOpencode {
332-
time.Sleep(5 * time.Second)
333-
// If we still have it as stable, go ahead.
334-
if convertStatus(s.conversation.Status()) != AgentStatusStable {
335-
continue
336-
}
337-
}
338-
339330
if err := s.conversation.SendMessage(FormatMessage(s.agentType, s.conversation.InitialPrompt)...); err != nil {
340331
s.logger.Error("Failed to send initial prompt", "error", err)
341332
} else {

0 commit comments

Comments
 (0)