-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Labels
area:ai/mcpModel Context ProtocolModel Context Protocolarea:serializationRestoration of the editor state after a restartRestoration of the editor state after a restartfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:awesomeexemplary issue/PR from the communityexemplary issue/PR from the communitypriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:claimed by communitysomeone from the community has a PR in progresssomeone from the community has a PR in progressstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Description
Reproduction
- Install a MCP Server Extension (in my case,
mcp-server-github) - Go to Zed's AI Agent window
- Make sure you are using a profile in which a MCP server extension is enabled (in my case,
write) - Send a message requesting to use a MCP server tool (in my case,
mcp-server-github/issue_read, using the prompt : "From MCP Servermcp-server-github, use the toolissue_readto readhttps://github.com/zed-industries/zed/issues/47111, and describe what you see") - Assess that the MCP tool answer is visible when expanding them

- Close Zed
- Open Zed again
- Go back to the original thread
- Assess that the MCP tool answer is now broken

Behavior
Current
AI Agent tool call answers are cleared upon app close
However, I'm not sure if new messages sent after zed has been reopened have access to the MCP tool call answer (I'm guessing not), If so, I also doubt that token count is being recalculated (needs confirmation from someone who knows the internals)
Expected
AI Agent tool call answers remains upon app close
Also making messages sent after zed has been reopened include those tool call answers
Zed version and system specs
Zed: v0.217.4+stable (Zed)
OS: Linux Wayland nixos 25.11
Memory: 13.5 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.2.6
Related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:ai/mcpModel Context ProtocolModel Context Protocolarea:serializationRestoration of the editor state after a restartRestoration of the editor state after a restartfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:awesomeexemplary issue/PR from the communityexemplary issue/PR from the communitypriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:claimed by communitysomeone from the community has a PR in progresssomeone from the community has a PR in progressstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce