fix(cli): settings propagation to an IDE keeps only the last settings file's manifest entry

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

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

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

評価

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

調査の方向性

cli/src/contexts/framework/application/install/install-ide-tool-use-case.tsから始めて、mergeAndTrackがexistingEntriesをどのように使っているかを追ってください。issueでは、cli/src/contexts/installation/application/install/propagate-ai-settings-to-ide.tsにある同じパターンが説明されています。issueで説明されている失敗するテストを最初に追加してください。既存のマニフェストエントリが1つある状態から始め、同じIDEを必要とする2つの設定ファイルを伝播させます。マニフェストが既存のエントリを保持し、新しいエントリを両方記録すれば完了です。

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

説明

Description

When an AI tool has several settings files that require the same IDE, propagating the settings to that IDE keeps only the last file's manifest entry. Each iteration filters the original merge entries, not the ones the previous iteration produced.

Affected file(s)
  • next: cli/src/contexts/framework/application/install/install-ide-tool-use-case.ts (existingEntries captured once, mergeAndTrack builds updated from it and calls manifest.updateToolMergeFiles per file).
  • refactor/cli-target: cli/src/contexts/installation/application/install/propagate-ai-settings-to-ide.ts (mergeAiToolSettings, replacing(existingEntries, entry)).
Expected behaviour

After propagation the manifest holds one merge entry per settings file written.

Observed behaviour

Every iteration computes [...existingEntries.filter(not this path), entry] from the same original list, then overwrites the tool's merge files with it. The entry of file 1 is dropped when file 2 is tracked. Limit: on next only Copilot declares a settings file with requiresTool (.vscode/settings.json), so the loss is latent until a tool declares a second one. The files themselves are still written; only their tracking is lost, which hides them from clean, doctor and status.

AI tool

All (latent, no shipped tool has two such files today)

aidd-cli version

unreleased, next

OS

Any

Additional context

Red-first test: a tool profile with two settings files requiring the same IDE, a manifest with one pre-existing merge entry, then propagate. Assert the manifest holds the pre-existing entry plus both new entries. Fix direction: carry the updated list across iterations.

主要言語
TypeScript
スター
481
フォーク
45
平均マージ
1日 13時間
マージ済み PR(30日)
91

環境構築

はじめの一歩

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

ai-driven-dev/framework のほかの issue

ai-driven-dev/framework の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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