Skip to content

Commit 2901b99

Browse files
committed
docs: fix EnableConfigDiscovery summary to accurately describe agent discovery behavior
The previous documentation incorrectly stated that custom instruction files are always loaded from the working directory regardless of the EnableConfigDiscovery setting. In practice, agent files (e.g. .github/agents/) are only discovered when EnableConfigDiscovery is true. Update the summary to clarify that: - Agent discovery is gated by EnableConfigDiscovery - Use SkipCustomInstructions to independently control instruction file loading Fixes #1887
1 parent a1334be commit 2901b99

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dotnet/src/Types.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,8 +2983,9 @@ protected SessionConfigBase(SessionConfigBase? other)
29832983
/// <see cref="McpServers"/> and <see cref="SkillDirectories"/>, with explicit
29842984
/// values taking precedence on name collision.
29852985
/// <para>
2986-
/// Custom instruction files (<c>.github/copilot-instructions.md</c>, <c>AGENTS.md</c>, etc.)
2987-
/// are always loaded from the working directory regardless of this setting.
2986+
/// Agent discovery (e.g. <c>.github/agents/</c>) is only performed when this is
2987+
/// <see langword="true"/>. Use <see cref="SkipCustomInstructions"/> to control
2988+
/// loading of custom instruction files independently.
29882989
/// </para>
29892990
/// </summary>
29902991
public bool? EnableConfigDiscovery { get; set; }

0 commit comments

Comments
 (0)