Skip to content

fix(spec,studio): github integration without owner/repo gives account-wide tools - #1207

Merged
LinuxDevil merged 2 commits into
mainfrom
fix/github-account-integration
Nov 18, 2026
Merged

LinuxDevil merged 2 commits into
mainfrom
fix/github-account-integration

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Editing an agent with AI failed on "add github tools": a github integration ref required owner and repo, 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.

  • A github ref without owner/repo is valid with a token and builds github_list_my_repositories, github_create_repository and github_api. Creating a repo and non-GET calls ask for approval. owner and repo must come together.
  • Studio auto-attaches the GitHub connector like the other connectors (its private copy of the tools is gone).
  • The Author's connected-accounts context describes the account-wide form.
  • Edit with AI's starter text is a complete request, not a half sentence.

🤖 Generated with Claude Code

LinuxDevil and others added 2 commits November 18, 2026 16:52
…-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>

@lousho-ai lousho-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lousho-ai lousho-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@LinuxDevil
LinuxDevil merged commit 308490d into main Nov 18, 2026
6 checks passed
@LinuxDevil
LinuxDevil deleted the fix/github-account-integration branch November 18, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant