opencode/packages
Kit Langton 6833070a57 fix(server): project /config response to JSON-safe at the HTTP boundary
Mirrors #26550 (Provider.toPublicInfo): internal runtime objects may
legitimately carry function/symbol/bigint/undefined values, but the
HTTP API contract is JSON-safe data matching the typed schema.

Plugin `config:` hooks are documented to mutate cfg in place
(registering agents/providers); that contract is preserved. The
projection happens in ConfigHttpApi.get only, so internal consumers
keep raw cfg and HTTP clients see a clean response.

Active reproducer asserts the actual product invariant — GET /config
returns a JSON-safe body even when a plugin attached a function to
cfg. Three trigger-output reproducers stay skipped: per-hook design
needed because the documented mutation contract makes a blanket
clone unsafe and `tool.parameters` is a live Effect Schema with
function-valued own keys that recursive in-place scrub would corrupt.
2026-05-09 15:08:55 -04:00
..
app sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
console sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
containers chore: bump Bun to 1.3.13 (#23791) 2026-04-23 00:25:36 -04:00
core sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
desktop sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
extensions/zed sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
function sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
http-recorder sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
llm sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
opencode fix(server): project /config response to JSON-safe at the HTTP boundary 2026-05-09 15:08:55 -04:00
plugin sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
script refactor: replace bun semver with npm semver package 2026-03-09 15:29:55 -04:00
sdk sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
slack sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
storybook feat(prompt): add shell mode UI with cancel button, custom icon, and example placeholder (#24105) 2026-04-24 14:04:55 +08:00
ui sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
web sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00