feat: Add skipLoopDetection Configuration Option

This commit is contained in:
tanzhenxin
2025-09-15 14:02:46 +08:00
parent b01ddf0aed
commit 386538521b
5 changed files with 123 additions and 7 deletions

View File

@@ -233,6 +233,7 @@ export interface ConfigParameters {
trustedFolder?: boolean;
shouldUseNodePtyShell?: boolean;
skipNextSpeakerCheck?: boolean;
skipLoopDetection?: boolean;
}
export class Config {
@@ -318,6 +319,7 @@ export class Config {
private readonly trustedFolder: boolean | undefined;
private readonly shouldUseNodePtyShell: boolean;
private readonly skipNextSpeakerCheck: boolean;
private readonly skipLoopDetection: boolean;
private initialized: boolean = false;
constructor(params: ConfigParameters) {
@@ -399,6 +401,7 @@ export class Config {
this.trustedFolder = params.trustedFolder;
this.shouldUseNodePtyShell = params.shouldUseNodePtyShell ?? false;
this.skipNextSpeakerCheck = params.skipNextSpeakerCheck ?? false;
this.skipLoopDetection = params.skipLoopDetection ?? false;
// Web search
this.tavilyApiKey = params.tavilyApiKey;
@@ -861,6 +864,10 @@ export class Config {
return this.skipNextSpeakerCheck;
}
getSkipLoopDetection(): boolean {
return this.skipLoopDetection;
}
async getGitService(): Promise<GitService> {
if (!this.gitService) {
this.gitService = new GitService(this.targetDir);