@@ -19,6 +19,8 @@ export abstract class BaseCliAgentRunner {
19
19
protected abstract readonly ignoredFilePatterns : string [ ] ;
20
20
protected abstract getCommandLineFlags ( options : LlmGenerateFilesRequestOptions ) : string [ ] ;
21
21
protected abstract writeAgentFiles ( options : LlmGenerateFilesRequestOptions ) : Promise < void > ;
22
+ protected inactivityTimeoutMins = 2 ;
23
+ protected totalRequestTimeoutMins = 10 ;
22
24
23
25
private pendingTimeouts = new Set < ReturnType < typeof setTimeout > > ( ) ;
24
26
private pendingProcesses = new Set < ChildProcess > ( ) ;
@@ -46,7 +48,7 @@ export abstract class BaseCliAgentRunner {
46
48
47
49
await this . writeAgentFiles ( options ) ;
48
50
49
- const reasoning = await this . runAgentProcess ( options , 2 , 10 ) ;
51
+ const reasoning = await this . runAgentProcess ( options ) ;
50
52
const finalSnapshot = await DirectorySnapshot . forDirectory ( context . directory , ignoredPatterns ) ;
51
53
52
54
const diff = finalSnapshot . getChangedOrAddedFiles ( initialSnapshot ) ;
@@ -168,15 +170,13 @@ export abstract class BaseCliAgentRunner {
168
170
return binaryPath ;
169
171
}
170
172
171
- private runAgentProcess (
172
- options : LlmGenerateFilesRequestOptions ,
173
- inactivityTimeoutMins : number ,
174
- totalRequestTimeoutMins : number ,
175
- ) : Promise < string > {
173
+ private runAgentProcess ( options : LlmGenerateFilesRequestOptions ) : Promise < string > {
176
174
return new Promise < string > ( resolve => {
177
175
let stdoutBuffer = '' ;
178
176
let stdErrBuffer = '' ;
179
177
let isDone = false ;
178
+ const inactivityTimeoutMins = this . inactivityTimeoutMins ;
179
+ const totalRequestTimeoutMins = this . totalRequestTimeoutMins ;
180
180
const msPerMin = 1000 * 60 ;
181
181
const finalize = ( finalMessage : string ) => {
182
182
if ( isDone ) {
0 commit comments