(text: str, is_error: bool, command: str)
| 1401 | |
| 1402 | |
| 1403 | def _tool_result_is_routine_success(text: str, is_error: bool, command: str) -> bool: |
| 1404 | if is_error or _contains_tool_failure_signal(text, command): |
| 1405 | return False |
| 1406 | return ( |
| 1407 | bool(_SUCCESSFUL_TEST_SUMMARY_RE.search(text or "")) |
| 1408 | or bool(_GENERIC_ROUTINE_SUCCESS_RE.search(text or "")) |
| 1409 | or _contains_risk_marker(command, _ROUTINE_SUCCESS_COMMAND_MARKERS) |
| 1410 | ) |
| 1411 | |
| 1412 | |
| 1413 | def _tool_result_is_short_success_observation(text: str, is_error: bool, command: str) -> bool: |
no test coverage detected