feat: surface OpenCode provider limit errors (#2167)

This commit is contained in:
Carlos Florêncio
2026-08-02 21:48:14 +01:00
committed by GitHub
parent e68d3f1d8f
commit b5631da7ee
48 changed files with 2218 additions and 101 deletions
@@ -10,7 +10,7 @@ import (
func TestOpenCodeACPUsesManagedRuntime(t *testing.T) {
a := NewOpenCodeACP()
want := []string{"npx", "--yes", "--prefer-offline", "opencode-ai", "acp"}
want := []string{"npx", "--yes", "--prefer-offline", "opencode-ai", "acp", "--print-logs", "--log-level", "ERROR"}
if got := a.BuildCommand(CommandOptions{}).Args(); !slices.Equal(got, want) {
t.Fatalf("BuildCommand = %#v, want %#v", got, want)