Nested .github/copilot/settings.json does not override enabledPlugins when cwd is below git root (worked in version 1.0.60)
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
When starting Copilot CLI from a nested directory below the git root, a local`.github/copilot/settings.json` in that nested cwd is not honored for `enabledPlugins`. A globally enabled marketplace plugin still loads even when the cwd-local settings file disables it.
### Affected version
GitHub Copilot CLI 1.0.61.
### Steps to reproduce the behavior
Directory layout:
```
repo/.git/ module/
.github/
copilot/
settings.json
```
Global ~/.copilot/settings.json:
```
...
{
"enabledPlugins": {
"example-plugin@example-marketplace": true
}
}
...
```
Nested repo/module/.github/copilot/settings.json:
```
{
"enabledPlugins": {
"example-plugin@example-marketplace": false
}
}
```
From repo/module, run:
copilot plugin list
### Expected behavior
The cwd-local .github/copilot/settings.json should override global settings,
and example-plugin@example-marketplace should be disabled for that session.
But the plugin still appears enabled/loaded from the global setting.
## Notes
The nested directory is not the git root. The git root is repo/.
If the same override is placed at `repo/.github/copilot/settings.json`, it is honored.
### Additional context
Abililty to keep settings.json at nested path under .git repo, gives us more flexibility. This was supported till version 1.0.60!
貢獻指南
研究方向
Start with the `copilot plugin list` entry point and trace how global, git-root, and cwd-local `.github/copilot/settings.json` files are discovered and merged. Reproduce the layout from the issue using `enabledPlugins`, then verify that a nested cwd setting disabling the plugin overrides the global setting while the git-root case continues to work.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github, shell
- 領域
- cli, tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100