We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99fcde commit 8efee81Copy full SHA for 8efee81
lib/httpapi/server.go
@@ -326,6 +326,12 @@ func (s *Server) StartSnapshotLoop(ctx context.Context) {
326
327
// Send initial prompt when agent becomes stable for the first time
328
if !s.conversation.InitialPromptSent && convertStatus(currentStatus) == AgentStatusStable {
329
+
330
+ // If agent type is opencode
331
+ if s.agentType == mf.AgentTypeOpencode {
332
+ time.Sleep(5 * time.Second)
333
+ }
334
335
if err := s.conversation.SendMessage(FormatMessage(s.agentType, s.conversation.InitialPrompt)...); err != nil {
336
s.logger.Error("Failed to send initial prompt", "error", err)
337
} else {
0 commit comments