ref(autopilot): Remove source_root from missing SDK integration detector#108119
Merged
ArthurKnaus merged 2 commits intomasterfrom Feb 12, 2026
Merged
ref(autopilot): Remove source_root from missing SDK integration detector#108119ArthurKnaus merged 2 commits intomasterfrom
ArthurKnaus merged 2 commits intomasterfrom
Conversation
The source_root from RepositoryProjectPathConfig is no longer a reliable indicator of where a project's code lives in a repository. Instead, the Seer AI agent now discovers the project directory itself using the project's platform and slug as hints. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
constantinius
approved these changes
Feb 12, 2026
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| ) | ||
| def run_missing_sdk_integration_detector_for_project_task( | ||
| organization_id: int, project_id: int, repo_name: str, source_root: str | ||
| organization_id: int, project_id: int, repo_name: str |
Contributor
There was a problem hiding this comment.
Task signature change breaks in-flight queued tasks
Medium Severity
Removing source_root from the task's positional args without a transition period causes TypeError during rolling deploys. Old producers enqueue tasks with 4 positional args (organization_id, project_id, repo_name, source_root), but new workers only accept 3. A safer approach is to first make source_root an optional parameter with a default (e.g., source_root: str = ""), deploy, then remove it in a follow-up.
Additional Locations (1)
shellmayr
approved these changes
Feb 12, 2026
jaydgoss
pushed a commit
that referenced
this pull request
Feb 12, 2026
…tor (#108119) Remove `source_root` from `RepositoryProjectPathConfig` usage in the missing SDK integration detector. The `source_root` is no longer a reliable indicator of where a project's code lives in a repository — the Seer AI agent should discover the project directory itself using the project's platform and slug as hints. Changes: - Add `CODE_PATH_NOT_FOUND` finish reason for when the agent cannot locate the project directory - Simplify parent task query to use `values_list("repository__name", flat=True)` instead of fetching full config dicts - Remove `source_root` parameter from child task signature and prompt - Replace hardcoded `source_root` path in prompt with discovery-based instructions using `project.platform` and `project.slug` Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Remove
source_rootfromRepositoryProjectPathConfigusage in the missing SDK integration detector. Thesource_rootis no longer a reliable indicator of where a project's code lives in a repository — the Seer AI agent should discover the project directory itself using the project's platform and slug as hints.Changes:
CODE_PATH_NOT_FOUNDfinish reason for when the agent cannot locate the project directoryvalues_list("repository__name", flat=True)instead of fetching full config dictssource_rootparameter from child task signature and promptsource_rootpath in prompt with discovery-based instructions usingproject.platformandproject.slugCo-Authored-By: Claude noreply@anthropic.com