mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 18:35:33 +01:00
Addresses review feedback on managed GitHub App reachability: - Preserves suspended installation owner logins separately in suspendedInstallationOwnerLogins (github-access-discovery.ts, shared types/ validators, and connection_grants JSONB type) so writes targeting suspended installations remain github_access_denied with explicit unsuspend guidance instead of github_repo_outside_app_installations install advice. - Skips the pre-check when an installation webhook marks the owner snapshot incomplete (bindingSync present / repositories cleared) and clarifies in trusted instructions that after an org admin installs the App, the user should refresh access on the Permissions page and retry. - Reuses the canonical policy denial path in tool-gateway.ts (adding github_repo_outside_app_installations to ToolAccessReasonCode and clearing idempotencyKey on non-replayed denials) and reuses the already-resolved remote tool context from resolveGovernedToolCall to avoid redundant lookups for non-GitHub providers. - Adds unit and gateway integration tests for suspended installations, webhook-invalidated snapshots, and create_repository omitted-organization behavior. Co-Authored-By: Paperclip <noreply@paperclip.ing>