Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Coder Agents client tools: $ref in tool input schemas is not resolved

Abierto
#321 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ThomasK33 ya está trabajando en esto.

Desde el 12/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Client tools registered through Coder Agents (chatd) lose any $ref in their input schema. The model then guesses the referenced shape.

Evidence (live, dogfood.cdr.dev v2.38.0-devel, 2026-10-12)

I registered one client tool, create_reminder, through @coder/ai-sdk-agent's CoderLanguageModel, with delay behind a reference. I tried two forms:

Schema form chatd response Model's delay argument
draft-07: { "$ref": "#/definitions/Delay" } + definitions accepted "10m"
2020-12: { "$ref": "#/$defs/Delay" } + $defs accepted "10m"
inline { "type": "object", "properties": { "minutes": { "type": "integer" } } } accepted { "minutes": 10 }

The dialect makes no difference, so the reference most likely never reaches the model resolved. I did not verify where it is dropped (chatd's schema handling or the upstream provider call).

Impact

@coder/ai-sdk-effect derives tool schemas from Effect Schema. Any schema with an identifier annotation is emitted as a $ref (on Effect 3 and Effect 4), so such tools do not work as Coder Agents client tools. The AI Gateway path (CoderLanguageModel) is not affected by this observation (not tested live).

Options

  • A. Find and fix where chatd drops or fails to resolve $ref (coder/coder).
  • B. Inline (dereference) local references in the agent package before registering client tools.
  • C. Document the limitation and inline only in @coder/ai-sdk-effect.

Found during the Effect 4 migration (#144, #320). The live test there uses an inline schema.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lenguaje dominante
TypeScript
Estrellas
3
Forks
0
Merge medio
50 min
PR fusionados (30 d)
136

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coder/ai-sdk

Todos los issues de coder/ai-sdk

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.