Update system instructions for optimizing shell tool commands (#10651)

This commit is contained in:
Hadi Minooei
2025-10-13 21:31:45 -07:00
committed by GitHub
parent ac1ddf344f
commit 4342bc4166
6 changed files with 156 additions and 0 deletions
+8
View File
@@ -278,6 +278,7 @@ export interface ConfigParameters {
enableMessageBusIntegration?: boolean;
codebaseInvestigatorSettings?: CodebaseInvestigatorSettings;
continueOnFailedApiCall?: boolean;
enableShellOutputEfficiency?: boolean;
}
export class Config {
@@ -371,6 +372,7 @@ export class Config {
private readonly enableMessageBusIntegration: boolean;
private readonly codebaseInvestigatorSettings?: CodebaseInvestigatorSettings;
private readonly continueOnFailedApiCall: boolean;
private readonly enableShellOutputEfficiency: boolean;
constructor(params: ConfigParameters) {
this.sessionId = params.sessionId;
@@ -465,6 +467,8 @@ export class Config {
params.enableMessageBusIntegration ?? false;
this.codebaseInvestigatorSettings = params.codebaseInvestigatorSettings;
this.continueOnFailedApiCall = params.continueOnFailedApiCall ?? true;
this.enableShellOutputEfficiency =
params.enableShellOutputEfficiency ?? true;
this.extensionManagement = params.extensionManagement ?? true;
this.storage = new Storage(this.targetDir);
this.enablePromptCompletion = params.enablePromptCompletion ?? false;
@@ -966,6 +970,10 @@ export class Config {
return this.continueOnFailedApiCall;
}
getEnableShellOutputEfficiency(): boolean {
return this.enableShellOutputEfficiency;
}
getShellExecutionConfig(): ShellExecutionConfig {
return this.shellExecutionConfig;
}