True for OpenCode step-finish boundaries.
(event: dict[str, Any], part: dict[str, Any], part_type: str)
| 396 | |
| 397 | |
| 398 | def _is_step_finish(event: dict[str, Any], part: dict[str, Any], part_type: str) -> bool: |
| 399 | """True for OpenCode step-finish boundaries.""" |
| 400 | event_type = str(event.get("type") or "").lower() |
| 401 | return ("step" in part_type and "finish" in part_type) or ( |
| 402 | "step" in event_type and "finish" in event_type |
| 403 | ) |
| 404 | |
| 405 | |
| 406 | def _final_answer( |
no test coverage detected