mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 19:43:15 +00:00
A user mention of "what the default repo is?" was being parsed by the `repo[: ]([a-zA-Z0-9_.\-/]+)` regex in `extract_repo_from_text`: the space form matched "repo is" and captured "is" as the repo name, which combined with the default owner to silently route the run to `langchain-ai/is`. The user's profile `default_repo` was never reached because the regex short-circuited first. The freeform extraction was solving a problem that user-level config already handles better: * Slack thread metadata carries the repo across follow-up mentions. * Dashboard profile `default_repo` is per-user and explicit. * Linear team/project mapping handles per-team routing. * GitHub webhooks know the repo from the payload — no parsing needed. So `extract_repo_from_text` and its tests are gone. `get_slack_repo_config` and the Linear webhook now fall through: thread metadata (Slack) → user profile → env / team-mapping defaults. Users who want a one-off override update their dashboard profile or post in a thread that's already on the target repo. Obsolete tests removed; `test_get_slack_repo_config_uses_thread_metadata_when_set` added to cover the remaining "thread metadata wins" path. |
||
|---|---|---|
| .. | ||
| middleware | ||
| test_auth_sources.py | ||
| test_daytona_integration.py | ||
| test_encryption.py | ||
| test_ensure_no_empty_msg.py | ||
| test_github_comment_prompts.py | ||
| test_github_issue_webhook.py | ||
| test_github_token_ttl.py | ||
| test_http_security.py | ||
| test_langsmith_sandbox_config.py | ||
| test_model_fallback_middleware.py | ||
| test_multimodal.py | ||
| test_notify_step_limit_middleware.py | ||
| test_proxy_auth.py | ||
| test_public_repo_org_gate.py | ||
| test_recent_comments.py | ||
| test_refresh_slack_status_middleware.py | ||
| test_reviewer.py | ||
| test_reviewer_diff.py | ||
| test_reviewer_findings.py | ||
| test_reviewer_publish.py | ||
| test_reviewer_tools.py | ||
| test_reviewer_watch.py | ||
| test_sandbox_paths.py | ||
| test_sanitize_tool_inputs.py | ||
| test_slack_assistants_status.py | ||
| test_slack_context.py | ||
| test_slack_feedback.py | ||