feat(FN-1013): complete Step 1 — add runStepsInNewSessions and maxParallelSteps settings
This commit is contained in:
@@ -929,6 +929,15 @@ export interface ProjectSettings {
|
|||||||
* each prompt and proactively compacts context when the token count reaches
|
* each prompt and proactively compacts context when the token count reaches
|
||||||
* this threshold. */
|
* this threshold. */
|
||||||
tokenCap?: number;
|
tokenCap?: number;
|
||||||
|
/** When true, each task step runs in its own fresh agent session instead of a
|
||||||
|
* single session for the entire task. Enables per-step error recovery and
|
||||||
|
* optional parallel execution when steps have non-overlapping file scopes.
|
||||||
|
* Default: false. */
|
||||||
|
runStepsInNewSessions?: boolean;
|
||||||
|
/** Maximum number of steps to run in parallel when runStepsInNewSessions is
|
||||||
|
* enabled and steps have non-overlapping file scopes. Range: 1–4.
|
||||||
|
* Default: 2. */
|
||||||
|
maxParallelSteps?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1019,6 +1028,8 @@ export const DEFAULT_PROJECT_SETTINGS: ProjectSettings = {
|
|||||||
insightExtractionMinIntervalMs: 86_400_000,
|
insightExtractionMinIntervalMs: 86_400_000,
|
||||||
memoryEnabled: true,
|
memoryEnabled: true,
|
||||||
tokenCap: undefined,
|
tokenCap: undefined,
|
||||||
|
runStepsInNewSessions: false,
|
||||||
|
maxParallelSteps: 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1100,6 +1111,8 @@ export const PROJECT_SETTINGS_KEYS: ReadonlyArray<keyof ProjectSettings> = [
|
|||||||
"memoryEnabled",
|
"memoryEnabled",
|
||||||
"maxSpawnedAgentsPerParent",
|
"maxSpawnedAgentsPerParent",
|
||||||
"maxSpawnedAgentsGlobal",
|
"maxSpawnedAgentsGlobal",
|
||||||
|
"runStepsInNewSessions",
|
||||||
|
"maxParallelSteps",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export interface BoardConfig {
|
export interface BoardConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user