[GH-ISSUE #46] Issues in streaming formatting when running connected to Opencode via ACP #15

Closed
opened 2026-02-27 10:21:46 +03:00 by kerem · 3 comments
Owner

Originally created by @ramarivera on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/46

Example

Image

so I don't know if it's something that can be fixed, if it's something easy to fix, if it affects the functionality at all, because maybe the streaming/formatting cuts off some keyword that Ralph is looking for and that causes him to loop and loop and loop, I don't know. Another alternative would be to check maybe an interface with open code as a CLI, for example, or via their SDK. Again, just options. So, I mean, assuming that we would have three paths, which would be ACP, which is what you're doing now, JSON streaming via the CLI, and SDK via their server. Yeah, so let me know what you think and I would be happy to take a look and implement either of the three solutions or anything else that you can think of.

Originally created by @ramarivera on GitHub (Jan 11, 2026). Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/46 Example <img width="904" height="1680" alt="Image" src="https://github.com/user-attachments/assets/45f96648-11b6-46fb-9ded-6f171ce44e27" /> so I don't know if it's something that can be fixed, if it's something easy to fix, if it affects the functionality at all, because maybe the streaming/formatting cuts off some keyword that Ralph is looking for and that causes him to loop and loop and loop, I don't know. Another alternative would be to check maybe an interface with open code as a CLI, for example, or via their SDK. Again, just options. So, I mean, assuming that we would have three paths, which would be ACP, which is what you're doing now, JSON streaming via the CLI, and SDK via their server. Yeah, so let me know what you think and I would be happy to take a look and implement either of the three solutions or anything else that you can think of.
kerem closed this issue 2026-02-27 10:21:46 +03:00
Author
Owner

@ramarivera commented on GitHub (Jan 11, 2026):

(speech to text was used, hence the ramblings and formatting)

<!-- gh-comment-id:3734400641 --> @ramarivera commented on GitHub (Jan 11, 2026): (speech to text was used, hence the ramblings and formatting)
Author
Owner

@mikeyobrien commented on GitHub (Jan 12, 2026):

Since the ACP adapter was vibe-coded, it needs a serious looking over for correctness and extensibility. It's got a lot of rough edges that need cleaning up. That said, I'd like ACP to be the default since it's easy to plugin any new provider that supports ACP.

I'm not opposed to an OpenCode SDK adapter, since it would be the most feature rich (and follow the same pattern as claude). CLI invocation with PTY would be the simplest and least brittle.

<!-- gh-comment-id:3739427203 --> @mikeyobrien commented on GitHub (Jan 12, 2026): Since the ACP adapter was vibe-coded, it needs a serious looking over for correctness and extensibility. It's got a lot of rough edges that need cleaning up. That said, I'd like ACP to be the default since it's easy to plugin any new provider that supports ACP. I'm not opposed to an OpenCode SDK adapter, since it would be the most feature rich (and follow the same pattern as claude). CLI invocation with PTY would be the simplest and least brittle.
Author
Owner

@mikeyobrien commented on GitHub (Jan 16, 2026):

ACP has been dropped. Until the explicit adapter is added, it might work with:

  cli:
    backend: "custom"
    command: "opencode"
    args:
      - "--dangerously-skip-permissions"
    prompt_mode: "arg"
    prompt_flag: "-p"
<!-- gh-comment-id:3760991042 --> @mikeyobrien commented on GitHub (Jan 16, 2026): ACP has been dropped. Until the explicit adapter is added, it might work with: ``` cli: backend: "custom" command: "opencode" args: - "--dangerously-skip-permissions" prompt_mode: "arg" prompt_flag: "-p" ```
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#15
No description provided.