Skip to content

[Bug]: /ralph-loop do not start new session #1900

@Hubedge

Description

@Hubedge

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

/ralph-loop do not start new session. Agent only work on the task once.

Steps to Reproduce

Start a new session with prompt /ralph-loop follow @scripts\ralph_prompt.md

Expected Behavior

opencode start a new session with same prompt after agent finishes a session.

Actual Behavior

.sisyphus\ralph-loop.local.md is generated

Agent executes task as expected, but seemingly ignores the following from the ralph-loop prompt template

## Your Task
Parse the arguments below and begin working on the task. The format is:
`"task description" [--completion-promise=TEXT] [--max-iterations=N]`

(I'm not sure if agent needs to do anything about it though)

.sisyphus\ralph-loop.local.md is deleted after a while, not sure why

Agent finishes task as expected, and outputs <promise>DONE</promise>, but opencode does not start a new session with the same prompt.

Doctor Output

> bun x oh-my-opencode doctor

 oMoMoMoMo Doctor

 ⚠ 2 issues found:

1. Comment checker unavailable
   Comment checker binary is not installed.
   Fix: Install @code-yeongyu/comment-checker
   Affects: comment-checker hook

2. GitHub CLI not authenticated
   gh CLI is installed but not logged in.
   Fix: Run: gh auth login
   Affects: GitHub automation

Error Logs

Configuration

Additional Context

Sisyphus model: GPT-5.2 High

The scripts\ralph_prompt.md file has roughly 90 lines.

Operating System

Windows

OpenCode Version

v1.2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage:bugConfirmed bug with repro steps

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions