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

[Bug]: Generated PR bodies say "Not run" under Testing even when the thread ran the tests

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

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

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

評価

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

調査の方向性

apps/server/src/textGeneration/TextGenerationPrompts.ts の buildPrContentPrompt から始め、PR テンプレートが存在しない場合にそれが組み立てるプロンプトを読み、その後呼び出し元を追って、その呼び出し時点でどのコンテキスト(スレッドの書き起こし、ツール呼び出し、テスト実行)が利用可能かを確認する。回帰チェックを置くべき場所を見つけるため、PR 本文/プロンプト生成周辺の既存テストを確認する。完了とは、## Testing セクションが実際に実行されたチェックを反映しているか、書き手に根拠がない場合は省略されるか中立に記述されていることを意味する — この issue は正確な方向をメンテナーに委ねているため、大きな変更を加える前に方針を確認すること。

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

説明

bug via-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/server

Steps to reproduce
  1. Open a project whose repo has no PR template
  2. In a thread, have the agent make a change and run the tests, for example bun test, and confirm they pass in the transcript.
  3. Use the commit and create PR action.
  4. Read the generated PR body.
Expected behavior

The ## Testing section reflects the checks that actually ran in the thread. If the writer has no information about testing, it should leave the section out or say so neutrally, rather than stating that tests were not run.

Actual behavior

The Testing section almost always says "Not run." or "Not run in this change request.", even when the thread ran and passed the tests. Reviewers read that as a statement that the change wasn't tested.

This comes from buildPrContentPrompt in apps/server/src/textGeneration/TextGenerationPrompts.ts. When there's no template, the prompt requires:

- body must be markdown and include headings '## Summary' and '## Testing'
- under Testing, include bullet points with concrete checks or 'Not run' where appropriate

but the only inputs are the base and head branches, the commit summary, the diff stat and the diff patch. The writer never sees the thread or its tool calls, so it can't know about any checks. It has to fill a required section, and 'Not run' is the fallback the prompt offers, so it picks that.

A user reported the same thing in #264 ("it somehow always adds to my PR description, that the tests and ci did not run... even though the agent clearly said it was validated"). #264 was closed with PR template support, which only helps repos that have a template. The default path still produces this.

Possible directions, for maintainers to decide:

  • Pass a short summary of the thread's verification commands and their exit status into the PR prompt.
  • Make ## Testing optional when the writer has no evidence, and drop 'Not run' as the suggested fallback.
Impact

Minor bug or occasional failure

Version or commit

0.0.46-nightly.20261006.2752

Environment

Kubuntu 26.04, T3 Code Nightly desktop. The source control writer is GPT-6 Luna (low, fast), but the cause seems to be the prompt, not the model.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround
  • Add a PR template without a Testing section, or
  • set custom writing instructions to leave out the Testing section, or
  • have the agent open the PR itself by asking it to.
主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
8時間 34分
マージ済み PR(30日)
243

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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