Skip to content

Conversation

@bhavyaus
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 10, 2026 06:25
@bhavyaus bhavyaus enabled auto-merge February 10, 2026 06:25
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Copilot Chat “memory” tool and related prompts to support a clearer memory model with user- and session-scoped storage, and adjusts Anthropic tool handling accordingly.

Changes:

  • Add a /memories/session/ namespace (workspace/session-scoped) and route /memories/ to global (user-scoped) storage.
  • Update agent prompts to include user + session memory context at chat start, and refresh memory tool instructions.
  • Simplify Anthropic Messages API tool handling by removing special-casing for a built-in Anthropic memory tool and ensuring memory isn’t deferred when tool search is enabled.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/platform/networking/common/anthropic.ts Marks memory as non-deferred for Anthropic tool-search scenarios.
src/platform/endpoint/node/messagesApi.ts Removes built-in-memory injection/filtering; sends memory as a regular tool.
src/extension/tools/node/test/memoryTool.spec.tsx Updates tests to use /memories/session/ paths and adds merged-root view test.
src/extension/tools/node/memoryTool.tsx Implements user vs session scoping, merged root listing, and updated invocation messages.
src/extension/tools/node/memoryContextPrompt.tsx Adds user memory content + session memory file listing into prompt context.
src/extension/tools/common/memoryCleanupService.ts Expands isMemoryUri to recognize both workspace and global storage locations.
src/extension/prompts/node/agent/agentPrompt.tsx Switches to new memory prompt components and threads sessionResource for session listing.
package.json Updates tool description to document the new three-scope memory model.

@bhavyaus bhavyaus added this pull request to the merge queue Feb 10, 2026
Merged via the queue into main with commit 44f4958 Feb 10, 2026
19 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/update-memory-context branch February 10, 2026 09:59
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