[PR #72] [MERGED] fix(adapters): use OpenCode run subcommand with positional prompt #119

Closed
opened 2026-02-27 10:22:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/72
Author: @mikeyobrien
Created: 1/19/2026
Status: Merged
Merged: 1/19/2026
Merged by: @mikeyobrien

Base: mainHead: fix/opencode-run-subcommand


📝 Commits (2)

  • 8dad818 fix(adapters): use OpenCode run subcommand with positional prompt
  • ae67f41 feat(presets): add minimal/opencode preset

📊 Changes

3 files changed (+97 additions, -33 deletions)

View changed files

📝 crates/ralph-adapters/src/cli_backend.rs (+43 -33)
crates/ralph-cli/presets/minimal/opencode.yml (+27 -0)
presets/minimal/opencode.yml (+27 -0)

📄 Description

Summary

  • Updates OpenCode CLI backend to use opencode run "prompt" syntax instead of the deprecated opencode -p "prompt" flag approach
  • Removes the --dangerously-skip-permissions flag which is no longer part of the OpenCode CLI interface
  • All three OpenCode backend variants (headless, TUI, interactive) now consistently use the run subcommand

Test plan

  • Existing unit tests updated and passing
  • Manual verification with OpenCode CLI (if available)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mikeyobrien/ralph-orchestrator/pull/72 **Author:** [@mikeyobrien](https://github.com/mikeyobrien) **Created:** 1/19/2026 **Status:** ✅ Merged **Merged:** 1/19/2026 **Merged by:** [@mikeyobrien](https://github.com/mikeyobrien) **Base:** `main` ← **Head:** `fix/opencode-run-subcommand` --- ### 📝 Commits (2) - [`8dad818`](https://github.com/mikeyobrien/ralph-orchestrator/commit/8dad818c985a1c1c4533f5c32cddda65bf452244) fix(adapters): use OpenCode `run` subcommand with positional prompt - [`ae67f41`](https://github.com/mikeyobrien/ralph-orchestrator/commit/ae67f41bcb926a774cf7c568a5237342e82f9ebf) feat(presets): add minimal/opencode preset ### 📊 Changes **3 files changed** (+97 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `crates/ralph-adapters/src/cli_backend.rs` (+43 -33) ➕ `crates/ralph-cli/presets/minimal/opencode.yml` (+27 -0) ➕ `presets/minimal/opencode.yml` (+27 -0) </details> ### 📄 Description ## Summary - Updates OpenCode CLI backend to use `opencode run "prompt"` syntax instead of the deprecated `opencode -p "prompt"` flag approach - Removes the `--dangerously-skip-permissions` flag which is no longer part of the OpenCode CLI interface - All three OpenCode backend variants (headless, TUI, interactive) now consistently use the `run` subcommand ## Test plan - [x] Existing unit tests updated and passing - [x] Manual verification with OpenCode CLI (if available) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:22:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ralph-orchestrator#119
No description provided.