diff --git a/architect-review/action.yml b/architect-review/action.yml index 53bc5cf..cbadfa6 100644 --- a/architect-review/action.yml +++ b/architect-review/action.yml @@ -73,7 +73,7 @@ inputs: fallback-on-regex: description: Rotate to the next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError prompt: description: Value exported as PROMPT before running `opencode github run`. When empty, the built-in architect review prompt is used. required: false diff --git a/feature-missing/action.yml b/feature-missing/action.yml index 886804c..de986d2 100644 --- a/feature-missing/action.yml +++ b/feature-missing/action.yml @@ -151,7 +151,7 @@ inputs: fallback-on-regex: description: Rotate to the next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError cleanup-error-comments: description: >- When true, automatically delete error comments posted by opencode to the PR diff --git a/github-run-opencode/action.yml b/github-run-opencode/action.yml index 64697af..5026d4a 100644 --- a/github-run-opencode/action.yml +++ b/github-run-opencode/action.yml @@ -73,7 +73,7 @@ inputs: fallback-on-regex: description: Rotate to the next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError prompt: description: Value exported as PROMPT before running `opencode github run`. required: false diff --git a/github-run-opencode/run-github-opencode.py b/github-run-opencode/run-github-opencode.py index 034577a..48a75ca 100755 --- a/github-run-opencode/run-github-opencode.py +++ b/github-run-opencode/run-github-opencode.py @@ -265,11 +265,11 @@ def _main() -> int: ) fallback_on_regex = get_env( "GITHUB_RUN_OPENCODE_FALLBACK_ON_REGEX", - "timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out", + "timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError", ) # Core opencode env - os.environ["OPENCODE_ARGS"] = "github run" + os.environ["OPENCODE_ARGS"] = "github run --print-logs --log-level ERROR" set_env("OPENCODE_WORKING_DIRECTORY", get_env("GITHUB_RUN_OPENCODE_WORKING_DIRECTORY")) set_env("OPENCODE_ATTEMPTS", get_env("GITHUB_RUN_OPENCODE_ATTEMPTS", "3")) set_env("OPENCODE_RETRY_PROFILE", get_env("GITHUB_RUN_OPENCODE_RETRY_PROFILE", "github-network")) diff --git a/multi-review/action.yml b/multi-review/action.yml index 077bb6d..5a88e94 100644 --- a/multi-review/action.yml +++ b/multi-review/action.yml @@ -73,7 +73,7 @@ inputs: fallback-on-regex: description: Rotate to next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError reviewer-config: description: Path to a YAML file defining custom reviewer personas and team composition. required: false diff --git a/multi-review/run-multi-review.py b/multi-review/run-multi-review.py index 752a32d..283c0ae 100644 --- a/multi-review/run-multi-review.py +++ b/multi-review/run-multi-review.py @@ -541,7 +541,7 @@ def _main() -> int: fallback_models_str = get_env("MULTI_REVIEW_FALLBACK_MODELS", "") fallback_on_regex = get_env( "MULTI_REVIEW_FALLBACK_ON_REGEX", - "timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out", + "timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError", ) coordinator_prompt_template = get_env("MULTI_REVIEW_COORDINATOR_PROMPT", "") diff --git a/review/action.yml b/review/action.yml index 2b0e48a..48236c5 100644 --- a/review/action.yml +++ b/review/action.yml @@ -73,7 +73,7 @@ inputs: fallback-on-regex: description: Rotate to the next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError prompt: description: Value exported as PROMPT before running `opencode github run`. required: false diff --git a/spec-coverage/action.yml b/spec-coverage/action.yml index 2a0388f..ebcbad2 100644 --- a/spec-coverage/action.yml +++ b/spec-coverage/action.yml @@ -170,7 +170,7 @@ inputs: fallback-on-regex: description: Rotate to the next fallback model when output matches this regex. required: false - default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out + default: timed out|timeout|deadline exceeded|context deadline exceeded|operation timed out|connection timed out|ProviderModelNotFoundError cleanup-error-comments: description: >- When true, automatically delete error comments posted by opencode to the PR