Files
PaperClipAI/ui
paperclipbugbotandClaude Opus 5.5 425a30139f fix(ui): attribute a stackless unhandled fetch rejection to the code that started it (#22396)
Chromium creates `TypeError: Failed to fetch` with no stack frames, and the
browser error monitor removes the SDK Breadcrumbs integration, so nothing
wraps fetch to add a call site. An unhandled network rejection reached
Sentry with no caller.

Once monitoring starts, wrap window.fetch once. Only on rejection, classify
the call-site stack as app, extension, other or unknown, keyed by the
rejected value in a WeakMap. Tag unhandled object rejections with
browser_fetch_initiator and browser_fetch_wrapper. No URL, path or stack
text is sent. The returned promise rethrows the identical value, so a
dropped promise is still reported.

Diagnostics only; this does not fix the underlying rejection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 07:47:44 -08: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.