feat(#761): Granular daily memory selection for flows#762
Merged
chubes4 merged 1 commit intoExtra-Chill:mainfrom Mar 9, 2026
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements granular daily memory selection for flows, replacing the binary all-or-nothing approach with multiple selection modes.
Closes #761
Selection Modes
Changes
Backend
DailyMemorySelectorDirective(Priority 46) - injects selected daily files into AI contextFlows.php- addedget_flow_daily_memory()and updatedupdate_flow_memory_files()to handle daily_memory configApi/Flows/Flows.php- updated REST endpoints to include daily_memory in GET/PUT responsesFrontend
DailyMemorySelector.jsx- new React component with all selection modesMemoryFilesSelector.jsx- updated to include daily memory selectorFlowMemoryFiles.jsx- updated to pass daily memory dataDatabase Schema
Daily memory config stored in
flow_configJSON:{ "memory_files": ["custom-file-1.md"], "daily_memory": { "mode": "recent_days", "days": 7 } }Testing
Site
saraichinwag.com running DM v0.39.0