open-swe/tests
langsmith-forge[bot] 48965a82a6
fix: coerce malformed integer strings in read_file offset/limit params (#1216)
- Root cause: LLM occasionally generates strings like '1, 80' or '170, "limit": 60'
  for integer fields, causing a Pydantic ValidationError and wasting an LLM turn
- Change: add SanitizeToolInputsMiddleware in agent/middleware/sanitize_tool_inputs.py
  that extracts the leading integer from any string value in offset/limit before
  the call reaches Pydantic validation; registered before ToolErrorMiddleware in server.py
- Verified: 14 unit tests covering all three production trace patterns pass

Co-authored-by: LangSmith Forge <forge-agent@langsmith.ai>
Co-authored-by: Johannes du Plessis <johannes@langchain.dev>
2026-05-01 14:29:48 -07:00
..
test_auth_sources.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_commit_and_open_pr_403.py fix: stop agent retrying commit_and_open_pr on 403 permission denied (#1123) 2026-05-01 19:37:53 +00:00
test_commit_and_open_pr_workflow_scope.py fix: return actionable error when push fails with workflows scope error (#1153) 2026-05-01 13:09:54 -07:00
test_ensure_no_empty_msg.py fix: skip no_op injection when PR is committed and user is notified (#1047) 2026-03-10 12:56:44 -07:00
test_get_pr_review_comments.py fix: add get_pr_review_comments tool to fetch PR review comments with auth (#1043) 2026-04-30 17:01:13 -07:00
test_github_ci.py feat: add github CI check run tools for shepherding CI (#1121) 2026-05-01 12:19:04 -07:00
test_github_comment_prompts.py feat: stop auto-cloning and let agent manage repo setup [closes OPE-21] (#1159) 2026-04-10 17:04:55 -07:00
test_github_create_pr.py fix: recover existing PR after httpx.HTTPError in create_github_pr (#1148) 2026-05-01 13:00:23 -07:00
test_github_issue_webhook.py fix: better docs, github auth (#1055) 2026-03-11 22:57:56 -08:00
test_github_pr_label.py fix: update existing PR title and body when create returns 422 (#1163) 2026-05-01 14:02:39 -07:00
test_github_review.py fix: block open-swe from approving PRs (#1177) 2026-04-09 11:45:08 -07:00
test_github_security.py fix: proxy config restored the branch yogesh/GitHub auth proxy (#1173) 2026-04-08 15:02:52 -07:00
test_http_security.py fix: Shell injection and ssrf issues (#1155) 2026-04-01 12:37:35 -07:00
test_multimodal.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_notify_step_limit_middleware.py fix: notify users via Slack when agent hits model call step limit (#1204) 2026-05-01 14:24:25 -07:00
test_open_pr_middleware.py fix: stop agent retrying commit_and_open_pr on 403 permission denied (#1123) 2026-05-01 19:37:53 +00:00
test_proxy_auth.py feat: stop auto-cloning and let agent manage repo setup [closes OPE-21] (#1159) 2026-04-10 17:04:55 -07:00
test_recent_comments.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_repo_extraction.py feat: extract repo parsing into shared util, add linear comment repo override (#1103) 2026-03-20 13:34:00 -07:00
test_sandbox_paths.py fix: better custom backend support (#1071) 2026-03-17 11:55:36 -07:00
test_sanitize_tool_inputs.py fix: coerce malformed integer strings in read_file offset/limit params (#1216) 2026-05-01 14:29:48 -07:00
test_slack_context.py fix: Remove obsolete automatic repository selection notifications (#1221) 2026-04-25 12:27:20 -07:00