fix(provisioner/terraform): hasExternalAgentResources has same count=0 false-positive as hasAITaskResources
まだ誰も着手していません。
評価
- 難易度
- 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 の本文から書いたものです。
説明
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
- Sibling fix: coder/coder#25197
- Review comment: https://github.com/coder/coder/pull/25197#discussion_r3235066078
Generated with Coder Agents
- 主要言語
- 言語のデータがありません
- スター
- 3
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/internal のほかの issue
-
flake
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
flake
-
flake
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100