anomalyco / anomalyco/opencode

Bug Report — houseCARL + Muse Spark 1.2 Contributor (Console Go) — Recursive JSON Schema

Open
#45,823 2 comments 0 reactions 1 assignee View on GitHub

@MrMushrooooom is already working on this.

Since Aug 28, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description
When housecarl MCP is enabled in OpenCode, selecting model Muse Spark 1.2 Contributor (via Console Go) fails immediately with Recursive JSON schemas are not currently supported. Other models work fine with the same MCP enabled. Disabling housecarl makes Muse Spark 1.2 work again.

Steps to Reproduce

  1. Add housecarl local MCP in opencode.jsonc pointing to housecarl-mcp.exe with HouseCarl__Mo2InstanceDir and HOUSECARL_DATA_DIR.
  2. Restart OpenCode.
  3. Select model Muse Spark 1.2 Contributor.
  4. Any prompt (even empty, MCP auto-registers) triggers the error before inference.

Expected Behavior
Should work like other models.

Actual Behavior
Error from provider (Console Go): Upstream request failed: [invalid_request_error] Recursive JSON schemas are not currently supported
No tool call reaches the server. Direct stdio test with same env shows houseCARL 1.9.0 is healthy (778 mods / 465 plugins in 14.6s), so the rejection is at provider schema validation.

Environment
OS: Windows 11 x64, OpenCode (Console Go), houseCARL 1.9.0, .NET 9.0.19, MO2 SkyrimSE

Additional Context
Same root cause as #45800 (postgres $ref recursion). houseCARL's reflection-driven schemas contain recursive $ref which Console Go's strict validator rejects. Related fixes: mastra#15400, opencode#41128.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.