paperclip/packages/adapters
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
..
acpx-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
claude-local Add Claude Fable 5 and Mythos 5 to the model selector (#7826) 2026-06-09 13:32:32 -05:00
codex-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
cursor-cloud build(deps): bump @cursor/sdk from 1.0.12 to 1.0.18 (#7573) 2026-06-04 22:24:51 -07:00
cursor-local Harden Cloudflare sandbox execution (#5967) 2026-05-13 22:00:10 -07:00
gemini-local Fix exe.dev sandbox installs for gemini/opencode local adapters (#5737) 2026-05-11 14:28:22 -07:00
grok-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
openclaw-gateway PAPA-430: workspace finalize gates + no-remote-git enforcement (#6969) 2026-05-29 08:25:29 -07:00
opencode-local fix(opencode-local): browser-safe modelProfiles env access + note on invalid PAPERCLIP_OPENCODE_PROVIDERS 2026-06-10 11:41:57 +02:00
pi-local Harden Cloudflare sandbox execution (#5967) 2026-05-13 22:00:10 -07:00
AUTHORING.md PAPA-430: workspace finalize gates + no-remote-git enforcement (#6969) 2026-05-29 08:25:29 -07:00