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

Aperta Adatta ai principianti
#4,459 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing-qa

Direzione di ricerca

Inizia da tests/installed-turn-surface.test.ts: i cinque controlli dei nomi delle letture core si trovano intorno alle righe 27-30, e i controlli di input_schema/defer_loading degli strumenti bridge alle righe 52-55; il commento di intestazione alla riga 2 va corretto. Leggi scripts/turn-surface-token-groups.ts (deferredToolNames) e scripts/capture-turn-surface.ts riga 116 per capire come viene costruita la cattura. È completato quando la prima richiesta verifica che ogni lettura core abbia un input_schema e un defer_loading diverso da true, e l'intestazione indica che tool search è abilitato esplicitamente mentre la produzione lo tiene disattivato in attesa di #4325.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
5
Fork
0
Merge medio
7h 22m
PR unite (30g)
600

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di schlessera/brain-kit

Tutte le issue di schlessera/brain-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.