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

plan: extractSolution reads artifacts[] but API returns step.solution

オープン
#958 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
api, cli

調査の方向性

src/types/seer.ts の extractSolution() から始め、アーティファクトベースの解析を、文書化されている step.solution のレスポンスと比較します。次に、plan コマンドのトリガーとポーリングのフローを確認します。完了条件は、完了したステップからソリューションデータが抽出され、ポーリングが NEED_MORE_INFORMATION を処理し、関連するエンドポイントの動作が解決されていることです。

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

説明

Discovery

While testing #951 fix against live API responses, found that extractSolution() in src/types/seer.ts looks for solution data in step.artifacts[].key === "solution" with data: { one_line_summary, steps }, but the Seer API actually returns solution data directly on the step object:

{
  "key": "solution",
  "type": "solution",
  "status": "COMPLETED",
  "description": "One-line summary of the fix plan",
  "solution": [
    {
      "title": "Description of what to change",
      "code_snippet_and_analysis": "...",
      "relevant_code_file": { "file_path": null, "repo_name": "getsentry/repo" }
    }
  ]
}

The artifacts array is always empty on solution steps.

Related issues

  1. triggerSolutionPlanning() sends { run_id, step: "solution" } which may create a new run instead of advancing the existing one. The correct call may be to the /autofix/update/ endpoint with { type: "select_root_cause", cause_id, stopping_point: "solution" }.

  2. The plan command polls until COMPLETED but the API returns NEED_MORE_INFORMATION when a solution is ready (waiting for user to accept/reject). The poll should stop on this status too.

Confirmed with

  • SENTRY-5K7G (7286418866) — 1-step solution
  • MCP-SERVER-FTB (7466005949) — 2-step solution
  • CLI-A0 (7297183155) — 1-step solution

All had status: NEED_MORE_INFORMATION with solution step fully completed and zero artifacts.

主要言語
TypeScript
スター
121
フォーク
14
平均マージ
23時間 54分
マージ済み PR(30日)
103

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

getsentry/cli のほかの issue

getsentry/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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