mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 23:13: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. |
||
|---|---|---|
| .. | ||
| auth.py | ||
| authorship.py | ||
| comments.py | ||
| github_app.py | ||
| github_comments.py | ||
| github_org_membership.py | ||
| github_token.py | ||
| github_user_email_map.py | ||
| langsmith.py | ||
| linear.py | ||
| linear_team_repo_map.py | ||
| messages.py | ||
| model.py | ||
| multimodal.py | ||
| sandbox.py | ||
| sandbox_paths.py | ||
| sandbox_state.py | ||
| slack.py | ||
| slack_feedback.py | ||