opencodeBackend implements Backend by spawning `opencode run --format json` and reading streaming JSON events from stdout — the same pattern as Claude.
| 43 | // opencodeBackend implements Backend by spawning `opencode run --format json` |
| 44 | // and reading streaming JSON events from stdout — the same pattern as Claude. |
| 45 | type opencodeBackend struct { |
| 46 | cfg Config |
| 47 | } |
| 48 | |
| 49 | func (b *opencodeBackend) Execute(ctx context.Context, prompt string, opts ExecOptions) (*Session, error) { |
| 50 | execPath := b.cfg.ExecutablePath |
nothing calls this directly
no outgoing calls
no test coverage detected