Skip to content

[Bug]: The number of iterations is always 1, but it is expected to increase gradually. #622

@chenjunqichina

Description

@chenjunqichina

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

Image

ralph-tool failed to start the next cycle.

ralph-loop.local.md


active: true
iteration: 1
max_iterations: 100
completion_promise: "DONE"
started_at: "2026-01-09T08:22:16.486Z"
session_id: "ses_45e269f6dffeHrUdqFQRvtYl2o"

test loop,never stop

Steps to Reproduce

#oh-my-opencode.json

{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"google_auth": false,
"agents": {
"Sisyphus": {
"model": "opencode/glm-4.7-free"
},
"librarian": {
"model": "opencode/glm-4.7-free"
},
"explore": {
"model": "opencode/glm-4.7-free"
},
"oracle": {
"model": "opencode/glm-4.7-free"
},
"frontend-ui-ux-engineer": {
"model": "opencode/glm-4.7-free"
},
"document-writer": {
"model": "opencode/glm-4.7-free"
},
"multimodal-looker": {
"model": "opencode/glm-4.7-free"
}
},
"ralph_loop": {
"enabled": true,
"default_max_iterations": 100
}
}

START UP LOG

[2026-01-09T08:29:31.822Z] [todo-continuation-enforcer] session.error {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o"}
[2026-01-09T08:29:31.822Z] [auto-compact] session.error received {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o","error":{"name":"MessageAbortedError","data":{"message":"The operation was aborted."}}}
[2026-01-09T08:29:31.822Z] [auto-compact] parsed result {"parsed":null,"hasError":true}
[2026-01-09T08:29:31.823Z] [todo-continuation-enforcer] session.idle {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o"}
[2026-01-09T08:29:31.834Z] [todo-continuation-enforcer] Countdown started {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o","seconds":2,"incompleteCount":2}
[2026-01-09T08:29:31.843Z] [preemptive-compaction] skipping unsupported model {"modelID":"glm-4.7-free"}
[2026-01-09T08:29:31.962Z] [auto-compact] message.updated with error {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o","error":{"name":"MessageAbortedError","data":{"message":"The operation was aborted."}}}
[2026-01-09T08:29:31.962Z] [auto-compact] message.updated parsed result {"parsed":null}
[2026-01-09T08:29:31.964Z] [todo-continuation-enforcer] Injection successful {"sessionID":"ses_45e269f6dffeHrUdqFQRvtYl2o"}
[2026-01-09T08:29:58.681Z] Config loaded from C:\Users\Administrator.config\opencode\oh-my-opencode.json {"agents":{"Sisyphus":{"model":"google/antigravity-gemini-3-pro-high"},"oracle":{"model":"google/antigravity-gemini-3-pro-high"},"librarian":{"model":"google/antigravity-gemini-3-flash"},"explore":{"model":"google/antigravity-gemini-3-flash"},"frontend-ui-ux-engineer":{"model":"google/antigravity-gemini-3-pro-high"},"document-writer":{"model":"google/antigravity-gemini-3-flash"},"multimodal-looker":{"model":"google/antigravity-gemini-3-flash"}}}
[2026-01-09T08:29:58.682Z] Config loaded from D:\workspace\temp.opencode\oh-my-opencode.json {"agents":{"Sisyphus":{"model":"opencode/glm-4.7-free"},"oracle":{"model":"opencode/glm-4.7-free"},"librarian":{"model":"opencode/glm-4.7-free"},"explore":{"model":"opencode/glm-4.7-free"},"frontend-ui-ux-engineer":{"model":"opencode/glm-4.7-free"},"document-writer":{"model":"opencode/glm-4.7-free"},"multimodal-looker":{"model":"opencode/glm-4.7-free"}}}
[2026-01-09T08:29:58.682Z] Final merged config {"agents":{"Sisyphus":{"model":"opencode/glm-4.7-free"},"oracle":{"model":"opencode/glm-4.7-free"},"librarian":{"model":"opencode/glm-4.7-free"},"explore":{"model":"opencode/glm-4.7-free"},"frontend-ui-ux-engineer":{"model":"opencode/glm-4.7-free"},"document-writer":{"model":"opencode/glm-4.7-free"},"multimodal-looker":{"model":"opencode/glm-4.7-free"}},"disabled_agents":[],"disabled_mcps":[],"disabled_hooks":[]}
[2026-01-09T08:29:58.727Z] Loaded 0 plugins with 0 commands, 0 skills, 0 agents, 0 MCP servers

INPUT

/ralph-loop "report your name,never stop"

Image

The number of iterations is always 1, but it is expected to increase gradually.

[2026-01-09T08:33:09.718Z] [claude-code-hooks] Detected keywords {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","types":["search"]}
[2026-01-09T08:33:09.719Z] [claude-code-hooks] Injecting 1 messages (1 keyword + 0 hook) {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","contentLength":311,"isFirstMessage":true}
[2026-01-09T08:33:09.719Z] UserPromptSubmit hooks prepended to first message parts directly {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14"}
[2026-01-09T08:33:09.719Z] [keyword-detector] Detected 1 keywords {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","types":["search"]}
[2026-01-09T08:33:09.719Z] [ralph-loop] Starting loop from chat.message {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","prompt":"report your name,never stop"}
[2026-01-09T08:33:09.720Z] [ralph-loop] Loop started {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","maxIterations":100,"completionPromise":"DONE"}
[2026-01-09T08:33:10.847Z] [auto-update-checker] Already on latest version
[2026-01-09T08:33:15.220Z] [auto-update-checker] Startup toast shown: v2.14.0
[2026-01-09T08:33:22.097Z] [preemptive-compaction] skipping unsupported model {"modelID":"glm-4.7-free"}
[2026-01-09T08:33:22.201Z] [preemptive-compaction] skipping unsupported model {"modelID":"glm-4.7-free"}
[2026-01-09T08:33:22.211Z] [todo-continuation-enforcer] session.idle {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14"}
[2026-01-09T08:33:22.214Z] [todo-continuation-enforcer] No todos {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14"}
[2026-01-09T08:33:22.216Z] [preemptive-compaction] skipping unsupported model {"modelID":"glm-4.7-free"}
[2026-01-09T08:33:22.218Z] [ralph-loop] Completion detected! {"sessionID":"ses_45e1ca7bbffeyziBwcHvURDU14","iteration":1,"promise":"DONE","detectedVia":"transcript_file"}

Expected Behavior

The number of iterations is always 1, but it is expected to increase gradually.

Actual Behavior

The number of iterations is always 1,

Doctor Output

oMoMoMoMo... Doctor


Installation
────────────────────────────────────────
  ✗ OpenCode Installation → OpenCode is not installed
  ✓ Plugin Registration → Registered

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ○ OpenAI (ChatGPT) Auth → Auth plugin not installed
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ⚠ AST-Grep CLI → Not installed (optional)
  ⚠ AST-Grep NAPI → Not installed (optional)
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ⚠ GitHub CLI → Not installed (optional)
  ⚠ LSP Servers → No LSP servers detected
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (2.14.0)

Summary
────────────────────────────────────────

  5 passed, 1 failed, 5 warnings, 3 skipped
  Total: 14 checks in 1369ms

✗ Issues detected. Please review the errors above.

Error Logs

Configuration

Additional Context

No response

Operating System

Windows

OpenCode Version

1.1.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions