You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: allow accepting memory proposals across all projects - #145
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-chat memory_propose cards (and the shared unanswered proposal rows in the Memory panel and Questions page) only offered project-scoped accept buttons (me and team).
What changed
Contracts (packages/contracts/src/memory.ts): Added "me-all" and "team-all" to MemoryChoice and MemoryDecisionChoice, keeping "me" and "team" unchanged so existing proposals.json history decodes cleanly.
Server (apps/server/src/memory/Memory.ts):
Mapped "me-all" to "personal" (memory/people/<live-login>.md) and "team-all" to "team" (memory/team.md) in appendedLine, with matching PR titles and branch stems (memory/personal-<login>, memory/team).
Tightened supersededVoiceAgentMemory to allow only "me" (rejecting "team", "team-all", and "me-all").
Existing proposeEdit (change / remove) and undo already operate on proposal.file / decision.file, so edits and undos for all four scopes work directly.
Web UI (apps/web/src/components/memory/MemoryProposalCard.tsx, memoryProposal.logic.ts):
Turned Accept for me and Accept for team into split buttons (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.
Because MemoryDecisionButtons is shared by MemoryProposalCard and MemoryProposalRow, the split buttons appear across chat cards, the Memory panel's Proposals tab, and the Questions page.
Added memoryAcceptedLabel so accepted cards show Accepted for you across all projects and Accepted for the team across all projects (with working Undo).
Docs & tests: Extended Memory.test.ts and memoryProposal.logic.test.ts (including live login switching, voice-agent guards, and undo for me-all / team-all), and updated docs/user/team-projects.md and fork/README.md.
Verification
vp run check:changed passed (format, lint, knip, graphql, typecheck across 43 packages, test across 4 files / 28 tests, react compiler).
Verified visually in the isolated dev web app (vp run dev) across both the in-chat proposal cards (pending split buttons + open dropdown + me-all / team-all accepted cards) and the /questions page.
Medium Risk
Changes memory decision handling and catalog PR targets; mistakes could write to the wrong shared memory files, though existing me/team defaults and tests limit regression risk.
Overview
Adds me-all and team-all decision choices so new agent memory lines can be saved to global files (memory/people/<login>.md and memory/team.md) instead of only project-scoped paths. Contracts extend MemoryChoice / MemoryDecisionChoice; the server’s appendedLine maps each choice to scope, PR title, and branch stem, while voice-agent proposals still accept only me.
In the web UI, Accept for me and Accept for team become split buttons: the primary click keeps the existing project-scoped behavior; the menu picks this project vs all projects. Accepted cards use memoryAcceptedLabel for clearer outcomes (including undo). Tests and user docs cover the new flows.
Reviewed by Cursor Bugbot for commit 39a2aa1. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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.
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.