feat(FN-1645): merge fusion/fn-1645

This commit is contained in:
gsxdsm
2026-04-12 15:28:52 -07:00
parent 59edac4ce2
commit d784e5a1bd
2 changed files with 10 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ export const DEFAULT_PROJECT_SETTINGS = {
buildRetryCount: 0, buildRetryCount: 0,
buildTimeoutMs: 300_000, buildTimeoutMs: 300_000,
requirePlanApproval: false, requirePlanApproval: false,
specStalenessEnabled: false,
specStalenessMaxAgeMs: 6 * 60 * 60 * 1000,
taskStuckTimeoutMs: undefined, taskStuckTimeoutMs: undefined,
aiSessionTtlMs: 7 * 24 * 60 * 60 * 1000, aiSessionTtlMs: 7 * 24 * 60 * 60 * 1000,
aiSessionCleanupIntervalMs: 60 * 60 * 1000, aiSessionCleanupIntervalMs: 60 * 60 * 1000,

View File

@@ -996,6 +996,14 @@ export interface ProjectSettings {
* remain in triage with status "awaiting-approval" until a user approves * remain in triage with status "awaiting-approval" until a user approves
* or rejects the plan. Default: false. */ * or rejects the plan. Default: false. */
requirePlanApproval?: boolean; requirePlanApproval?: boolean;
/** When true, enforces that task specifications (PROMPT.md) are refreshed if they
* become stale. Stale specs are detected based on specStalenessMaxAgeMs.
* Default: false. */
specStalenessEnabled?: boolean;
/** Maximum age in milliseconds for a task specification before it is considered stale
* and requires regeneration. Only enforced when specStalenessEnabled is true.
* Default: 21600000 (6 hours). */
specStalenessMaxAgeMs?: number;
/** Timeout in milliseconds for detecting stuck tasks. When a task's agent session /** Timeout in milliseconds for detecting stuck tasks. When a task's agent session
* shows no activity (no text deltas, tool calls, or progress updates) for longer * shows no activity (no text deltas, tool calls, or progress updates) for longer
* than this duration, the task is considered stuck and will be terminated and retried. * than this duration, the task is considered stuck and will be terminated and retried.