Inbox: numbered choices in a :::question become free text, and context bullets become the choices

Aperta Adatta ai principianti
#4,132 1 commento 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
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
tooling

Direzione di ricerca

Inizia leggendo packages/core/question-block.ts, in particolare CHOICE_RE, PLAIN_BULLET_RE e choicesArePlainBullets, poi esamina inboxQuestionsToCheck e i controlli sul risultato dell’invio. Riproduci il caso con l’esempio fornito :::question e verifica come vengono analizzate le opzioni numerate, le voci puntate di contesto e Recommended:. Il lavoro è completato quando le opzioni numerate vengono gestite come previsto oppure le raccomandazioni non valide attivano un avviso al momento dell’invio, e le voci puntate del glossario non vengono più scambiate silenziosamente per opzioni.

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

Descrizione

When a :::question block writes its choices as a numbered list (1. **Label**: description), the Inbox card shows them as plain text and offers only a free-text box; the Recommended: line turns into a "suggested answer" that matches nothing. If the same block also has a plain - bullet list in its context (for example a short glossary), those context bullets become the radio choices instead, with no warning in the send result.

Expected: either read the numbered list as the choices (at least when Recommended: names one item's bold label), or warn in the send result when a Recommended: line names no choice, so the agent can resend.

Reproduction

Send through send_message:

:::question
Which queue should failed webhook deliveries retry on?

Background:

- *Jobs queue*: the queue every background job uses today.
- *Retry queue*: a second queue used only for retries.

1. **Jobs queue**: no new infrastructure.
2. **Retry queue**: isolates slow retries.

Recommended: Retry queue
:::

Expected from the parser, and what we saw with a longer block of exactly this shape: the card offers "Jobs queue: the queue every …" and "Retry queue: a second queue …" (the glossary) as radio choices, plus "Retry queue" tagged Recommended as an extra free-text answer; the numbered options render as prose. Without the glossary bullets, the same block renders as a free-text question (here the send result does include the no_choices advice, but the card has already reached the person).

Why it happens

In packages/core/question-block.ts (same at v0.29.5 and on main), CHOICE_RE accepts 1. markers only with a [ ] box, and PLAIN_BULLET_RE only accepts -, *, +. With no task-list item, choicesArePlainBullets takes every plain bullet of the block as a choice, wherever it stands. inboxQuestionsToCheck flags only a block with zero choices, so the glossary case passes silently, and no check compares the Recommended: line against the parsed choices.

In our Inbox, agents wrote 3 of 28 pick-one questions this way within one day, after a local instruction asked them for a fixed Background / Proposal / Reason structure. We fixed our instruction, but a send-time warning would catch it for everyone.

Plannotator version

plannotator 0.29.5

OS

Linux (WSL2)

Agent

Claude Code

Where did it happen?

Inbox

Lingua principale
TypeScript
Stelle
8.7k
Fork
649
Merge medio
16h 1m
PR unite (30g)
756

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 backnotprop/plannotator

Tutte le issue di backnotprop/plannotator

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.