summaryrefslogtreecommitdiff
path: root/packages/core/src/config/config.ts
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-08-19 16:03:51 -0700
committerGitHub <[email protected]>2025-08-19 23:03:51 +0000
commitf1575f6d8de2f4efa0805a2d11a4a421a1a8228f (patch)
tree8977235b9a42983de3e76189f25ff055e9d28a83 /packages/core/src/config/config.ts
parent0cc2a1e7ef904294fff982a4d75bf098b5b262f7 (diff)
feat(core): refactor shell execution to use node-pty (#6491)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/core/src/config/config.ts')
-rw-r--r--packages/core/src/config/config.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts
index 5ab39e83..8c95a99d 100644
--- a/packages/core/src/config/config.ts
+++ b/packages/core/src/config/config.ts
@@ -202,6 +202,7 @@ export interface ConfigParameters {
chatCompression?: ChatCompressionSettings;
interactive?: boolean;
trustedFolder?: boolean;
+ shouldUseNodePtyShell?: boolean;
}
export class Config {
@@ -267,6 +268,7 @@ export class Config {
private readonly chatCompression: ChatCompressionSettings | undefined;
private readonly interactive: boolean;
private readonly trustedFolder: boolean | undefined;
+ private readonly shouldUseNodePtyShell: boolean;
private initialized: boolean = false;
constructor(params: ConfigParameters) {
@@ -334,6 +336,7 @@ export class Config {
this.chatCompression = params.chatCompression;
this.interactive = params.interactive ?? false;
this.trustedFolder = params.trustedFolder;
+ this.shouldUseNodePtyShell = params.shouldUseNodePtyShell ?? false;
if (params.contextFileName) {
setGeminiMdFilename(params.contextFileName);
@@ -728,6 +731,10 @@ export class Config {
return this.interactive;
}
+ getShouldUseNodePtyShell(): boolean {
+ return this.shouldUseNodePtyShell;
+ }
+
async getGitService(): Promise<GitService> {
if (!this.gitService) {
this.gitService = new GitService(this.targetDir);