Repository navigation
fix(spec,studio): github integration without owner/repo gives account-wide tools - #1207
Conversation
…-wide tools The Author could not add GitHub tools to an agent: a github ref required owner and repo, so "any repo" failed validation on every draft, and the account-wide tools only existed as a Studio run-time injection no spec could name. A github ref without owner and repo is now valid with a token and builds github_list_my_repositories, github_create_repository and github_api (creating and non-GET calls ask for approval). owner and repo must come together. Studio auto-attaches the github connector like the others, the Author is told about the account-wide form, and Edit with AI starts with a complete request instead of a half sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Approving. This PR fixes the GitHub integration so that a github ref can be specified without owner/repo when a token is provided, giving account-wide tools (github_list_my_repositories, github_create_repository, github_api). Previously owner and repo were required, blocking any-repo drafts. The changes move the GitHub tool generation into withConnectedIntegrations, add proper Zod validation for the owner/repo/token relationship, and create a new createGitHubAccountTools module for the account-wide tools. Studio now auto-attaches the GitHub connector consistent with other connectors.
There was a problem hiding this comment.
Approving. The PR correctly implements account‑wide GitHub tools when a github ref is given without owner/repo but with a token. It removes the old mandatory owner/repo requirement, updates Zod validation to enforce that owner and repo must appear together or neither, and introduces createGitHubAccountTools for the account‑wide tool set. Studio now auto‑attaches the GitHub connector like the other connectors, and the edit‑with‑AI draft text is updated. Tests and documentation have been added/updated to reflect the new behaviour. All earlier concerns (validation, tool generation, Studio injection) are now resolved.
Editing an agent with AI failed on "add github tools": a
githubintegration ref requiredownerandrepo, so every draft for "any repo" failed validation, and the account-wide GitHub tools from #1206 were a Studio run-time injection no spec could name.githubref withoutowner/repois valid with atokenand buildsgithub_list_my_repositories,github_create_repositoryandgithub_api. Creating a repo and non-GET calls ask for approval.ownerandrepomust come together.🤖 Generated with Claude Code