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

Abierto Apto para principiantes
#4,132 1 comentario 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
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
tooling

Línea de trabajo

Empieza leyendo packages/core/question-block.ts, especialmente CHOICE_RE, PLAIN_BULLET_RE y choicesArePlainBullets; después, inspecciona inboxQuestionsToCheck y las comprobaciones del resultado del envío. Reproduce el caso con el ejemplo proporcionado :::question y comprueba cómo se analizan las opciones numeradas, las viñetas de contexto y Recommended:. Se considera terminado cuando las opciones numeradas se gestionan como se espera o las recomendaciones no válidas generan una advertencia al enviar, y las viñetas del glosario dejan de confundirse silenciosamente con opciones.

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

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
8.7k
Forks
649
Merge medio
16 h 1 min
PR fusionados (30 d)
756

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

Todos los issues de backnotprop/plannotator

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.