feat(core): add default execution limits for subagents (#18274)

This commit is contained in:
Abhi
2026-02-04 01:28:00 -05:00
committed by GitHub
parent 94f4e5cc15
commit b39cefe14e
5 changed files with 47 additions and 19 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ import {
} from './agentLoader.js';
import { GEMINI_MODEL_ALIAS_PRO } from '../config/models.js';
import type { LocalAgentDefinition } from './types.js';
import { DEFAULT_MAX_TIME_MINUTES, DEFAULT_MAX_TURNS } from './types.js';
describe('loader', () => {
let tempDir: string;
@@ -237,7 +238,8 @@ Body`);
},
},
runConfig: {
maxTimeMinutes: 5,
maxTimeMinutes: DEFAULT_MAX_TIME_MINUTES,
maxTurns: DEFAULT_MAX_TURNS,
},
inputConfig: {
inputSchema: {