-
Notifications
You must be signed in to change notification settings - Fork 978
Expose loadCliConfig in the Node SDK #856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -616,6 +616,7 @@ export class CopilotClient { | |
| customAgents: config.customAgents, | ||
| agent: config.agent, | ||
| configDir: config.configDir, | ||
| loadCliConfig: config.loadCliConfig, | ||
| skillDirectories: config.skillDirectories, | ||
| disabledSkills: config.disabledSkills, | ||
| infiniteSessions: config.infiniteSessions, | ||
|
|
@@ -722,6 +723,7 @@ export class CopilotClient { | |
| envValueMode: "direct", | ||
| customAgents: config.customAgents, | ||
| agent: config.agent, | ||
| loadCliConfig: config.loadCliConfig, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cross-SDK consistency: Resume session forwarding needs equivalent implementation in:
|
||
| skillDirectories: config.skillDirectories, | ||
| disabledSkills: config.disabledSkills, | ||
| infiniteSessions: config.infiniteSessions, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -736,6 +736,15 @@ export interface SessionConfig { | |
| */ | ||
| configDir?: string; | ||
|
|
||
| /** | ||
| * When true, the runtime loads CLI-style extensibility from the current environment. | ||
| * This includes merged MCP config, default GitHub MCP behavior, skills, custom agents, | ||
| * installed plugins, and other config-backed session options. | ||
| * Explicit per-request settings are merged on top of discovered config. | ||
| * @default false | ||
| */ | ||
| loadCliConfig?: boolean; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cross-SDK consistency: This new field needs equivalent implementation in:
|
||
|
|
||
| /** | ||
| * Tools exposed to the CLI server | ||
| */ | ||
|
|
@@ -865,6 +874,7 @@ export type ResumeSessionConfig = Pick< | |
| | "hooks" | ||
| | "workingDirectory" | ||
| | "configDir" | ||
| | "loadCliConfig" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cross-SDK consistency: The
Each should include the equivalent of |
||
| | "mcpServers" | ||
| | "customAgents" | ||
| | "agent" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-SDK consistency: This field forwarding needs equivalent implementation in:
if load_cli_config: payload["loadCliConfig"] = load_cli_configinclient.py(around line 745)req.LoadCliConfig = config.LoadCliConfiginCreateSessionmethod inclient.goconfig.LoadCliConfigparameter toCreateSessionRequestconstructor inClient.cs