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

fix(provisioner/terraform): hasExternalAgentResources has same count=0 false-positive as hasAITaskResources

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

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

評価

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

調査の方向性

provisioner/terraform/resources.go の hasExternalAgentResources から始め、coder/coder#25197 のインスタンスベースの HasAITasks アプローチと、そのレビューでの議論を比較してください。coder_external_agent リソースが count = 0 の場合に存在すると報告されず、実際のインスタンスが引き続き HasExternalAgents = true を生成し、依存する動作も正しいままであれば、作業は完了です。

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

説明

bug

Description

hasExternalAgentResources in provisioner/terraform/resources.go scans Terraform graph DOT output for coder_external_agent node labels, returning true regardless of count. This is the same class of bug fixed for hasAITaskResources in coder/coder#25197.

A template with coder_external_agent at count = 0 will incorrectly report HasExternalAgents = true, which:

  • Blocks the chat tool from creating workspaces from that template
  • Disables workspace actions in the UI
  • Affects template search filtering via has_external_agent:true

Fix

Replace the graph-based hasExternalAgentResources() with instance-based detection, matching the approach used for HasAITasks in coder/coder#25197.

References

Generated with Coder Agents

主要言語
言語のデータがありません
スター
3
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

coder/internal のほかの issue

coder/internal の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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