Add dashboard memory management - #436
Conversation
Implementation PlanProblem analysisMemory is currently a file convention consumed by the coding-agent resource loader, while the dashboard has no typed or security-bounded way to inspect or mutate it. The implementation therefore needs a dedicated memory-domain API rather than exposing arbitrary file operations through the Files tab. The dashboard is fleet-wide, so project scope cannot mean one implicit cwd. Project choices will be built from the active runtime and persisted-session cwd inventory already available to the server, normalized through the same git-root rule used by memory loading, canonicalized, deduplicated, and sorted by stable project path. Global memory is one separate scope. Claude-compatible memory remains outside this writable surface because dreb treats it as read-only.
Deletion is a logical entry-plus-index operation: successful deletion must remove the entry file and its matching Deliverables
Files to create
Files to modify
Testing approachMemory service unit tests (
|
Vitest coverage
|
Progress UpdateImplemented the dashboard Memories feature across server, client, tests, and documentation. Delivered
Verification
Commit: Progress tracked by mach6 |
Code ReviewCriticalNone. Important
Suggestions
OOM investigationNo agent found a ≥80-confidence infinite reactive loop or unbounded client-side accumulation in the changed code. Signals/resources replace rather than append state, effects appear convergent, and individual document payloads are capped. The duplicate-scope defect directly matches part of the QA report but does not alone explain a browser OOM. The strongest pressure candidates are repeated full server scans and unthrottled Markdown preview; browser heap instrumentation during repeated navigation is needed to establish the crash mechanism. Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action Plan
Assessment by mach6 |
Progress UpdateFixed the genuine memory navigation and pressure findings from the review.
Verification passed: focused dashboard tests, full test suite, Biome, full build, workspace-link verification, and diff checks. The commit hook passed 5,540 tests with 711 skipped. Commit: Progress tracked by mach6 |
QA ReviewImportant
QA contextThese behaviors were observed during post-fix manual QA. The loading delay itself may be justified by fresh canonical scope discovery and containment checks; the issue is that the current UX provides no immediate indication that the selection is being processed. Reviewed by manual QA |
Progress UpdateFixed all three issues from manual QA:
Verification passed: focused dashboard tests, full Commit: Progress tracked by mach6 |
Closes #335
Add a dashboard Memories tab for securely browsing, editing, and deleting global and project memory entries while keeping each scope's index synchronized.
Implementation plan posted as a comment below.