Repository navigation
Conversation
…, and support cross-project scopes
PR SummaryMedium Risk Overview Server-side deduplication now blocks Proposal cards add a This project / All projects toggle that passes optional Agents are guided to propose neutral wording (no “me” or the user’s name), with matching tool copy, block footer text, and an eval guard case. Reviewed by Cursor Bugbot for commit 97cc454. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4a0ac13. Configure here.
…d dedupe under writeLock

When team and project memory files grew past the 8 KB
<memory>block cap,buildMemoryBlocksliced from the end and silently dropped personal and personal-project memories first. Agents could also propose already-saved or cross-thread duplicate lines, accepting a proposal could append duplicate lines or only target project-scoped files, and general proposals lacked guidance to avoid first-person wording when they might be accepted for the team.What changed
packages/contracts/src/memory.ts,apps/web/src/components/memory/MemoryPanel.tsx): Trim earlier (less-specific) sections first when the<memory>block exceedsMEMORY_MAX_BYTESsopersonalandpersonal-projectsections stay intact.apps/server/src/memory/Memory.ts): Rejectmemory_proposeadditions when the normalized line is already saved in any active memory file for the project or pending from another thread in the same project, and refusememory.decideadditions when the line already exists in the target file.packages/contracts/src/memory.ts,apps/server/src/memory/Memory.ts,apps/web/src/components/memory/): Add an optionalscopefield onMemoryDecideInputand aThis project/All projectstoggle onMemoryDecisionButtons(shared by chat cards, the Memory panel, and the Questions page) so additions can save tomemory/people/<login>.mdormemory/team.mdas well as project-scoped files.packages/contracts/src/memory.ts,apps/server/src/mcp/toolkits/memory/tools.ts,evals/mcp-tool-use/cases/voice-agent-memories.ndjson): Instruct agents to write general memory proposals neutrally (without"me"or the user's name) and add a matching eval case.Verification
vp run check:changedpasses (format, lint, knip, graphql, 42-package typecheck, unit tests includingAgentContextBudget.test.ts, and React compiler coverage).vp test run mcp-tool-use/run.test.ts -t "voice agent case"(fromevals) passes.Model: Gemini 4 Neon (Antigravity)