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

オープン 初心者向け
#4,132 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
tooling

調査の方向性

まず packages/core/question-block.ts、特に CHOICE_RE、PLAIN_BULLET_RE、choicesArePlainBullets を読み、その後 inboxQuestionsToCheck と送信結果のチェックを調べてください。提供された :::question の例で再現し、番号付き選択肢、コンテキストの箇条書き、Recommended: がどのように解析されるかを確認してください。番号付き選択肢が期待どおりに処理されるか、無効な推奨項目が送信時に警告を出すようになり、用語集の箇条書きが選択肢として暗黙に誤認されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
8.7k
フォーク
649
平均マージ
16時間 1分
マージ済み PR(30日)
756

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

backnotprop/plannotator のほかの issue

backnotprop/plannotator の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。