feat(seer): Block coding-agent handoff for non-GitHub projects in the table#118588
Draft
billyvg wants to merge 1 commit into
Draft
feat(seer): Block coding-agent handoff for non-GitHub projects in the table#118588billyvg wants to merge 1 commit into
billyvg wants to merge 1 commit into
Conversation
… table Coding-agent handoff only works for GitHub repositories. In the Seer projects table each row's Handoff dropdown previously let a user pick a coding agent regardless of the project's repos, which cannot work for GitLab/Bitbucket/etc. The table can't cheaply know every project's repo providers up front (the list endpoint only returns reposCount, and per-project lookups would be N queries), so check lazily: when a non-Seer agent is selected, fetch that one project's repos (prefetched on dropdown-open, cached) and, if any is non-GitHub, show an error toast and leave the value on Seer without persisting. GitHub-only projects are unaffected. This is a UI guard only; no backend change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
billyvg
commented
Jun 26, 2026
Comment on lines
+33
to
+35
| export function isGithubRepoProvider(provider: string | undefined | null): boolean { | ||
| return Boolean(provider?.toLowerCase().includes('github')); | ||
| } |
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.
Summary
Coding-agent handoff (Cursor, Claude Code, …) only works for GitHub repositories. In the Seer projects table (
settings/seer/projects/), each row's Handoff to Agent dropdown previously let a user pick a coding agent regardless of the project's repos — which can't work for GitLab/Bitbucket/etc.The table can't cheaply know every project's repo providers up front: the list endpoint only returns
reposCount, and per-project lookups would be N queries. So this checks lazily on change: when a user picks a non-Seer agent for a row, it fetches that one project's repos and, if any is non-GitHub, shows an error toast and leaves the value on Seer — nothing is persisted. GitHub-only projects are unaffected.Screen.Recording.2026-06-26.at.15.44.17.mov
Notes / trade-offs
onMenuOpenprefetch + 60s cache.🤖 Generated with Claude Code