@@ -1163,13 +1163,9 @@ type SessionConfig struct {
11631163 // ConfigDirectory overrides the default configuration directory location.
11641164 // When specified, the session will use this directory for storing config and state.
11651165 ConfigDirectory string
1166- // EnableConfigDiscovery, when non-nil, controls automatic discovery of MCP server configurations
1167- // (e.g. .mcp.json, .vscode/mcp.json) and skill directories from the working directory
1168- // and merges them with any explicitly provided MCPServers and SkillDirectories, with
1169- // explicit values taking precedence on name collision.
1166+ // EnableConfigDiscovery enables runtime discovery of supported configuration.
1167+ // Explicitly supplied configuration takes precedence over discovered values.
11701168 // Nil leaves the runtime default unchanged; use Bool(false) to explicitly disable discovery.
1171- // Custom instruction files (.github/copilot-instructions.md, AGENTS.md, etc.) are
1172- // always loaded from the working directory regardless of this setting.
11731169 EnableConfigDiscovery * bool
11741170 // SkipEmbeddingRetrieval, when non-nil, controls embedding-based retrieval
11751171 // for this session. Use in multitenant deployments to prevent cross-session
@@ -1722,13 +1718,9 @@ type ResumeSessionConfig struct {
17221718 WorkingDirectory string
17231719 // ConfigDirectory overrides the default configuration directory location.
17241720 ConfigDirectory string
1725- // EnableConfigDiscovery, when non-nil, controls automatic discovery of MCP server configurations
1726- // (e.g. .mcp.json, .vscode/mcp.json) and skill directories from the working directory
1727- // and merges them with any explicitly provided MCPServers and SkillDirectories, with
1728- // explicit values taking precedence on name collision.
1721+ // EnableConfigDiscovery enables runtime discovery of supported configuration.
1722+ // Explicitly supplied configuration takes precedence over discovered values.
17291723 // Nil leaves the runtime default unchanged; use Bool(false) to explicitly disable discovery.
1730- // Custom instruction files (.github/copilot-instructions.md, AGENTS.md, etc.) are
1731- // always loaded from the working directory regardless of this setting.
17321724 EnableConfigDiscovery * bool
17331725 // SkipEmbeddingRetrieval, when non-nil, controls embedding-based retrieval
17341726 // for this session. Use in multitenant deployments to prevent cross-session
0 commit comments