Repository navigation
feat: allow accepting memory proposals across all projects - #145
Conversation
PR SummaryMedium Risk Overview Server: Web: Accept for me and Accept for team become split buttons—primary click keeps one-click project scope; the menu picks this project vs all projects. Accepted cards use Contracts, tests, and docs extend the choice enums and cover decide, undo, account switch, and UI labels. Reviewed by Cursor Bugbot for commit 22523d4. Bugbot is set up for automated code reviews on this repo. Configure here. |
39a2aa1 to
22523d4
Compare
Personal all-projects memory (
memory/people/<user>.md) and team all-projects memory (memory/team.md) already load into threads and can be edited in the Memory panel, but in-chatmemory_proposecards (and the shared unanswered proposal rows in the Memory panel and Questions page) only offered project-scoped accept buttons (meandteam).What changed
packages/contracts/src/memory.ts): Added"me-all"and"team-all"toMemoryChoiceandMemoryDecisionChoice, keeping"me"and"team"unchanged so existingproposals.jsonhistory decodes cleanly.apps/server/src/memory/Memory.ts):"me-all"to"personal"(memory/people/<live-login>.md) and"team-all"to"team"(memory/team.md) inappendedLine, with matching PR titles and branch stems (memory/personal-<login>,memory/team).supersededVoiceAgentMemoryto allow only"me"(rejecting"team","team-all", and"me-all").proposeEdit(change/remove) andundoalready operate onproposal.file/decision.file, so edits and undos for all four scopes work directly.apps/web/src/components/memory/MemoryProposalCard.tsx,memoryProposal.logic.ts):Group+GroupSeparator+Menu): clicking the primary button still accepts for the current project in one click, while each dropdown offers both this-project and all-projects targets.MemoryDecisionButtonsis shared byMemoryProposalCardandMemoryProposalRow, the split buttons appear across chat cards, the Memory panel's Proposals tab, and the Questions page.memoryAcceptedLabelso accepted cards showAccepted for you across all projectsandAccepted for the team across all projects(with working Undo).Memory.test.tsandmemoryProposal.logic.test.ts(including live login switching, voice-agent guards, and undo forme-all/team-all), and updateddocs/user/team-projects.mdandfork/README.md.Verification
vp run check:changedpassed (format,lint,knip,graphql,typecheckacross 43 packages,testacross 4 files / 28 tests,react compiler).vp run dev) across both the in-chat proposal cards (pending split buttons + open dropdown +me-all/team-allaccepted cards) and the/questionspage.Built with Gemini 4 Neon (High) via Antigravity.