Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

The question tool rejects calls that send header without question

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

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

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

評価

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

調査の方向性

TypeScriptコード内でquestionツールのスキーマのデコード経路を見つけ、無効な呼び出しが処理される箇所を調べてください。報告されたquestion欠落エラーを再現し、デコードされた引数がツールに渡される経路を追ってください。厳密なデコードに失敗した後、欠落または空白のquestionを空白でないheaderから復元でき、指定された質問は変更されない状態を完了とします。

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

説明

Version: @opencode/cli 2.0.24.

Steps to reproduce: make the model call question with {"questions":[{"header":"Pick","options":[{"label":"A","description":"a"}]}]}.

Result: Invalid arguments for tool "question": questions[0].question: Missing key. The call is lost, and the model must ask again.

Cause: models often put the question text in header and leave out question. The intent is clear, but the strict schema decode rejects it.

Suggested fix: when question is missing or blank and header is not blank, use header as question. Never change a supplied question. Run this repair only after the strict decode fails, so valid calls do not change.

主要言語
TypeScript
スター
221k
フォーク
29.6k
平均マージ
4時間 35分
マージ済み PR(30日)
521

環境構築

はじめの一歩

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

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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