Summary
Add a "Hide sessions older than N days" toggle in Settings → AI Tools that filters the Sessions panel.
Background
AppSettings.sessionMaxAgeDays already exists (default 30) but is currently used only for retention/garbage collection. The Sessions panel still shows everything regardless. Add a UI toggle that filters the in-app list to honor this same value.
Acceptance criteria
Files to touch
src/renderer/src/types/index.ts
src/renderer/src/stores/settingsStore.ts (default + migration)
src/renderer/src/components/settings/SettingsModal.tsx
src/renderer/src/components/sessions/SessionList.tsx (filter logic)
Effort: 3-5 hours.
Summary
Add a "Hide sessions older than N days" toggle in Settings → AI Tools that filters the Sessions panel.
Background
AppSettings.sessionMaxAgeDaysalready exists (default 30) but is currently used only for retention/garbage collection. The Sessions panel still shows everything regardless. Add a UI toggle that filters the in-app list to honor this same value.Acceptance criteria
hideSessionsOlderThanMaxAgedefaulting tofalse(preserves current behavior).SettingsModal.tsxunder the AI Tools tab, near the existingsessionMaxAgeDaysslider/input.SessionListfilters out sessions whoseupdatedAtis older thannow - sessionMaxAgeDays * 86400_000.Files to touch
src/renderer/src/types/index.tssrc/renderer/src/stores/settingsStore.ts(default + migration)src/renderer/src/components/settings/SettingsModal.tsxsrc/renderer/src/components/sessions/SessionList.tsx(filter logic)Effort: 3-5 hours.