mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 11:33:14 +00:00
* fix: notify users via Slack when agent hits model call step limit - Root cause: GraphRecursionError at 1000 steps bypassed all @after_agent middleware including open_pr_if_needed, leaving users with no notification - Change: Added ModelCallLimitMiddleware(run_limit=60) to intercept gracefully before the hard recursion limit, and added notify_step_limit_reached @after_agent middleware to post a Slack thread reply when the limit fires - Verified: 107 existing tests pass, no regressions * fix: harden step-limit Slack notification Ensure the step-limit notification runs after the PR safety net and cover the new middleware behavior with focused unit tests. --------- Co-authored-by: LangSmith Forge <forge-agent@langsmith.ai> Co-authored-by: Johannes du Plessis <johannes@langchain.dev> |
||
|---|---|---|
| .. | ||
| test_auth_sources.py | ||
| test_commit_and_open_pr_403.py | ||
| test_commit_and_open_pr_workflow_scope.py | ||
| test_ensure_no_empty_msg.py | ||
| test_get_pr_review_comments.py | ||
| test_github_ci.py | ||
| test_github_comment_prompts.py | ||
| test_github_create_pr.py | ||
| test_github_issue_webhook.py | ||
| test_github_pr_label.py | ||
| test_github_review.py | ||
| test_github_security.py | ||
| test_http_security.py | ||
| test_multimodal.py | ||
| test_notify_step_limit_middleware.py | ||
| test_open_pr_middleware.py | ||
| test_proxy_auth.py | ||
| test_recent_comments.py | ||
| test_repo_extraction.py | ||
| test_sandbox_paths.py | ||
| test_slack_context.py | ||