paperclip/packages
Jannes Stubbemann 6eeb8039e9 fix(opencode-local): browser-safe modelProfiles env access + note on invalid PAPERCLIP_OPENCODE_PROVIDERS
Two fixes on the gateway-routing PR:

- index.ts is shared client/server code (the UI imports it for
  DEFAULT_OPENCODE_LOCAL_MODEL et al.), but buildOpenCodeModelProfiles()
  defaulted its env parameter to a bare `process.env` evaluated at module
  load. Under the e2e lane the UI is served through Vite dev middleware,
  which does not rewrite `process.env`, so the browser threw
  "ReferenceError: process is not defined" at module evaluation and the
  entire app failed to render — breaking every UI e2e spec. Guard with
  `typeof process` and fall back to an empty env.

- parseProviderConfig() silently swallowed JSON.parse failures of
  PAPERCLIP_OPENCODE_PROVIDERS, making a misconfigured value
  undiagnosable. It now appends a note ("contains invalid JSON" /
  "is not a JSON object") so the skipped provider block is visible in the
  run notes. Tests cover both malformed-JSON and non-object values.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 11:41:57 +02:00
..
adapter-utils PAPA-430: workspace finalize gates + no-remote-git enforcement (#6969) 2026-05-29 08:25:29 -07:00
adapters fix(opencode-local): browser-safe modelProfiles env access + note on invalid PAPERCLIP_OPENCODE_PROVIDERS 2026-06-10 11:41:57 +02:00
db build(deps-dev): bump drizzle-kit from 0.31.9 to 0.31.10 (#7572) 2026-06-06 23:23:47 -07:00
mcp-server [codex] Add checkbox confirmation issue interactions (#7649) 2026-06-06 08:48:43 -05:00
plugins feat(ui): add collapsible sidebar rail and takeover panes (#7824) 2026-06-09 13:25:17 -05:00
shared [codex] Move instance settings under company settings (#7680) 2026-06-07 17:23:53 -05:00
skills-catalog refactor(deps-dev): bump vitest from 3.2.4 to 4.1.8 (#7581) 2026-06-05 21:11:32 -07:00
teams-catalog refactor(deps-dev): bump vitest from 3.2.4 to 4.1.8 (#7581) 2026-06-05 21:11:32 -07:00