tests: installed turn surface does not assert the wire shape of the five eager core reads

Abierto Apto para principiantes
#4,459 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing-qa

Línea de trabajo

Empieza con tests/installed-turn-surface.test.ts: las cinco comprobaciones de nombres de las lecturas core están alrededor de las líneas 27-30, y las comprobaciones de input_schema/defer_loading de las herramientas bridge en las líneas 52-55; el comentario de cabecera de la línea 2 necesita corrección. Lee scripts/turn-surface-token-groups.ts (deferredToolNames) y scripts/capture-turn-surface.ts línea 116 para ver cómo se construye la captura. Está terminado cuando la primera solicitud afirma que cada lectura core tiene un input_schema y un defer_loading que no es true, y la cabecera indica que tool search está habilitada explícitamente mientras producción lo mantiene desactivado a la espera de #4325.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

agent-ready area: backends priority: p3 type: test

Part of #4426 (follow-ups from #4278). Deferred from the review of PR #4457.

Context

tests/installed-turn-surface.test.ts:27-30 checks the five core reads by name only. In the same test, the bridge tools are also checked for input_schema and defer_loading (:52-55). The deferred-name list comes from message text (deferredToolNames, scripts/turn-surface-token-groups.ts:11-24), so the check cannot see the wire flag.

The file header (:2) also misdescribes the capture. It says the capture runs under production defaults, but the capture forces ENABLE_TOOL_SEARCH: "true" (scripts/capture-turn-surface.ts:116). Production pins it to "false" (packages/ui-backend-claude/src/sdk-options.ts:321), as ruled on #4306.

Fix this before tool search is enabled under #4325.

Scope

The test and its header comment only.

Acceptance criteria

  • In the first request, each of the five core reads has a defined input_schema, and its defer_loading is not true.
  • The header states that the capture enables tool search explicitly, and that production keeps it off pending #4325.
  • Mutation receipt: removing the anthropic/alwaysLoad stamp from one core read turns the test red on the new assertion.
Lenguaje dominante
TypeScript
Estrellas
5
Forks
0
Merge medio
7 h 22 min
PR fusionados (30 d)
600

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 schlessera/brain-kit

Todos los issues de schlessera/brain-kit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.