Skip to content

feat(memory): filter memories by group - #107

Merged
JUNERDD merged 4 commits into
JUNERDD:mainfrom
Luohao-Yan:feat/memory-groups-pr
Nov 12, 2026
Merged

JUNERDD merged 4 commits into
JUNERDD:mainfrom
Luohao-Yan:feat/memory-groups-pr

Conversation

@Luohao-Yan

Copy link
Copy Markdown
Contributor

Summary

  • Add group filters above the Memory list: All, User profile, Preferences and facts, Corrections and learnings, and Tool preferences.
  • Show a count for every group and keep the filters composed with the existing text search.
  • Restore the global empty state when no memories exist, instead of showing the selected group's empty state.
  • Rename the user-facing tool-quirk label to Tool preferences / 工具偏好 without changing the stored category value.

Group mapping

Group Matches
User profile type = user
Preferences and facts type = memory, or failure with category = preference
Tool preferences type = failure with category = tool-quirk
Corrections and learnings every other failure category

Behavior

  • Selecting a group filters the cards immediately.
  • Search and group filters apply together.
  • Switching groups resets the incremental card reveal.
  • An empty group offers Show all memories.
  • With zero memories, the page shows the global empty state regardless of the active filter.

Verification

  • pnpm --filter @atd/desktop typecheck
  • pnpm --filter @atd/desktop test — 31 test files, 142 tests passed

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
atd-agent Skipped Skipped Nov 12, 2026 2:58am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T15:09:13.983682Z 3316ff6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

JUNERDD commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Found one low-severity issue in memory-list.tsx, lines 62–63:

When a search is active and the user deletes the last saved memory, the query remains populated. Since searching now depends only on the query, the page shows “No memories match…” instead of the global empty state, even though totalUnits is zero.

Consider gating searching with totalUnits > 0 so the global empty state takes precedence when no memories remain.

No other introduced production bugs were identified in the reviewed changes. CI passed; native UI behavior was not exercised.

@Luohao-Yan

Copy link
Copy Markdown
Contributor Author

Fixed in c7efc5f. The search empty state now requires at least one saved memory, so deleting the last memory while a query is active falls back to the global empty state. Added regression coverage for both cases; desktop typecheck and 32 files / 144 tests pass.

@JUNERDD
JUNERDD merged commit 6df4f1a into JUNERDD:main Nov 12, 2026
10 checks passed

This branch was previously deployed

1 inactive deployment
Preview — c7efc5f1 Deployed Nov 12, 2026 by vercel[bot]
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.

2 participants