diff --git a/scripts/ci/opencode_review_surfaces.py b/scripts/ci/opencode_review_surfaces.py index b314cddf00..55756d1ea9 100644 --- a/scripts/ci/opencode_review_surfaces.py +++ b/scripts/ci/opencode_review_surfaces.py @@ -329,6 +329,14 @@ def _language(value: str) -> str: def extract_model_prose(raw_output: str) -> str: """Return the human review body, stripping sentinel and control JSON.""" + if ""): + skipping_control = False + continue + lines.append(line) + slow_result = "\n".join(lines).strip() + + assert fast_result == slow_result == "line one\nline two\n\nline three" + + def test_format_request_changes_keeps_model_prose_and_strips_fake_anchor() -> None: """REQUEST_CHANGES keeps the model walkthrough and never cites workflow:1.""" body = surfaces.format_request_changes_review(