Skip to content

feat(#761): Granular daily memory selection for flows#762

Merged
chubes4 merged 1 commit intoExtra-Chill:mainfrom
saraichinwag:feature/761-daily-memory-selector
Mar 9, 2026
Merged

feat(#761): Granular daily memory selection for flows#762
chubes4 merged 1 commit intoExtra-Chill:mainfrom
saraichinwag:feature/761-daily-memory-selector

Conversation

@saraichinwag
Copy link
Contributor

Summary

Implements granular daily memory selection for flows, replacing the binary all-or-nothing approach with multiple selection modes.

Closes #761

Selection Modes

  1. None - Don't include any daily memory (default)
  2. Recent days - Include the past N days (max 90)
  3. Specific dates - Pick individual days from a calendar/list
  4. Date range - From date X to date Y
  5. Entire months - Select whole months at once

Changes

Backend

  • DailyMemorySelectorDirective (Priority 46) - injects selected daily files into AI context
  • Flows.php - added get_flow_daily_memory() and updated update_flow_memory_files() to handle daily_memory config
  • Api/Flows/Flows.php - updated REST endpoints to include daily_memory in GET/PUT responses

Frontend

  • DailyMemorySelector.jsx - new React component with all selection modes
  • MemoryFilesSelector.jsx - updated to include daily memory selector
  • FlowMemoryFiles.jsx - updated to pass daily memory data
  • Queries/mutations updated for new data format

Database Schema

Daily memory config stored in flow_config JSON:

{
  "memory_files": ["custom-file-1.md"],
  "daily_memory": {
    "mode": "recent_days",
    "days": 7
  }
}

Testing

  1. Open a flow's Memory Files modal
  2. Scroll to Daily Memory section
  3. Try each selection mode
  4. Save and verify the config persists
  5. Run the flow and check logs for injected daily memory

Site

saraichinwag.com running DM v0.39.0

Add DailyMemorySelector component with multiple selection modes:
- Recent days (past N days, max 90)
- Specific dates (pick individual days)
- Date range (from/to)
- Entire months

Backend:
- New DailyMemorySelectorDirective (Priority 46) injects selected files
- Flow config stores daily_memory with mode and mode-specific fields
- REST API updated to handle daily_memory in GET/PUT

Frontend:
- New DailyMemorySelector.jsx React component
- Updated MemoryFilesSelector to include daily memory UI
- Updated queries/mutations for new data format
@chubes4 chubes4 merged commit ee09f0f into Extra-Chill:main Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Granular daily memory selection for flows/pipelines

2 participants