FN-5939: expose operational log retention setting
Expose operational log retention as a project setting in the dashboard. - add an Operational log retention selector to the Project General settings section with supported retention options - validate operationalLogRetentionDays in the settings API and cover accepted and rejected values in tests - document the constrained retention values and assert project-scope/default parity for the setting Files changed: docs/settings-reference.md | 2 +- packages/core/src/__tests__/settings-parity.test.ts | 7 ++++ packages/dashboard/app/components/SettingsModal.tsx | 47 ++++++++++------------ packages/dashboard/app/components/__tests__/SettingsModal.test.tsx | 8 ++++ packages/dashboard/src/__tests__/routes-settings.test.ts | 21 ++++++++++ packages/dashboard/src/routes/register-settings-memory-routes.ts | 10 +++++ 6 files changed, 69 insertions(+), 26 deletions(-) Fusion-Task-Id: FN-5939 Fusion-Task-Lineage: 2148dd88-1cef-4c6d-9696-31148fce97d3
This commit is contained in:
@@ -430,7 +430,7 @@ Default notes:
|
||||
| `showQuickChatFAB` | `boolean` | `false` | Show floating quick-chat button (chat remains available via More menu). |
|
||||
| `chatAutoCleanupDays` | `0 \| 7 \| 14 \| 30 \| 60 \| 90` | `0` | Auto-cleanup retention window for idle chat sessions and chat rooms. `0` is off (default). When enabled, periodic self-healing maintenance deletes rows with `updatedAt` older than the configured day window. |
|
||||
| `mailAutoCleanupDays` | `0 \| 7 \| 14 \| 30 \| 60 \| 90` | `0` | Auto-prune retention window for inbox/outbox mail messages. `0` is off (default). When enabled, periodic self-healing maintenance deletes `messages` rows where `updatedAt < cutoff` for the configured day window. Suggested setting: `7`. |
|
||||
| `operationalLogRetentionDays` | `number` | `30` | Retention window for SQLite operational-log tables (`activityLog`, `runAuditEvents`, `agentHeartbeats`). Periodic maintenance prunes rows older than this many days using each row's `timestamp`. Set `0` to disable pruning. |
|
||||
| `operationalLogRetentionDays` | `0 \| 7 \| 14 \| 30 \| 60 \| 90` | `30` | Retention window for SQLite operational-log tables (`activityLog`, `runAuditEvents`, `agentHeartbeats`). `0` is off. Lower values mean Reliability metrics/charts and the Activity feed will not show history older than the configured window; per-task task detail history is unaffected. Periodic maintenance prunes rows older than this many days using each row's `timestamp`. |
|
||||
| `agentLogFileRetentionDays` | `number` | `0` | Retention window for per-task `.fusion/tasks/{ID}/agent-log.jsonl` files after a task is soft-deleted or archived. Periodic maintenance removes JSONL entries older than this many days; active tasks are never pruned. Set `0` to disable pruning. |
|
||||
| `chatRoomRecentVerbatimMessages` | `number` | `25` | Number of newest chat-room messages kept verbatim in responder context before older entries are compacted (about 2× prior default history). |
|
||||
| `chatRoomCompactionFetchLimit` | `number` | `200` | Upper bound on room messages fetched for transcript compaction per responder turn (raised to support larger retained context windows). |
|
||||
|
||||
Reference in New Issue
Block a user