Files
PaperClipAI/ui
DottaandPaperclip 7c699213f3 fix(github): detect writes outside GitHub App installations and stop advising Refresh access
Managed GitHub App connections cannot write to repositories belonging to
external organizations where the Paperclip GitHub App is not installed, even
when those repositories are public. Previously, every GitHub 403 'Resource
not accessible by integration' error mapped to github_access_denied and told
users and agents to click Manage GitHub access / Refresh access, and no check
stopped approval cards from being posted for targets outside the App's
installed accounts.

This change:
- Adds github_repo_outside_app_installations classification, target extraction,
  and managed GitHub App reachability pre-checking in
  server/src/services/tool-access/github-access-errors.ts.
- Pre-checks approval-requiring managed GitHub writes against the grant's
  installed accounts (installationOwnerLogins + personal login) before posting
  an approval card, denying unreachable external-org writes without wasting a
  human approval or poisoning idempotency keys.
- Distinguishes runtime 403 integration denials on external orgs from missing
  repository grants on installed orgs (or the user's personal account) across
  tool-gateway.ts, routes/tool-gateway.ts, tool-action-delivery.ts,
  continuation-cause.ts, and agent-task-run-telemetry.ts.
- Renders a dedicated IssueThreadInteractionCard alert explaining that
  refreshing access cannot grant write permission to external organizations
  where the App is not installed (without a dead-end Manage GitHub access
  link), while keeping Manage GitHub access for github_access_denied.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-25 13:33:37 -06:00
..
…

@paperclipai/ui

Published static assets for the Paperclip board UI.

What gets published

The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.

Storybook

Storybook config, stories, and fixtures live under ui/storybook/.

pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook

Typical use

Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.

Editor dependency identity

Keep the root and workspace overrides for @codemirror/state, @codemirror/view, and @lezer/common aligned. CodeMirror requires shared extension identity, while Lezer parsers and syntax highlighters require shared NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the installed dependency graph and highlights sample code through the editor's real language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.