Skip to content

agent_ui: Fix MCP tool results not displaying after app restart#47654

Merged
benbrandt merged 4 commits intozed-industries:mainfrom
oliverbarnes:tool-calls-cleared
Feb 12, 2026
Merged

agent_ui: Fix MCP tool results not displaying after app restart#47654
benbrandt merged 4 commits intozed-industries:mainfrom
oliverbarnes:tool-calls-cleared

Conversation

@oliverbarnes
Copy link
Contributor

Closes #47404

Release Notes:

  • Fixed MCP tool results not displaying after restarting Zed

…industries#47404)

When replaying a thread with MCP tool calls, if the MCP server isn't
connected yet (common after app restart), the tool results were not
displayed because replay_tool_call returned early without sending the
saved output data.

Now sends both ToolCall and ToolCallUpdate events when the tool is not
found, ensuring the UI can convert raw_output to displayable content.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 26, 2026
@maxdeviant maxdeviant changed the title agent_ui: Fix MCP tool results not displaying after app restart (#47404) agent_ui: Fix MCP tool results not displaying after app restart Jan 26, 2026
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 31, 2026
Copy link
Member

@benbrandt benbrandt left a comment

Choose a reason for hiding this comment

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

Thanks!

@benbrandt benbrandt self-assigned this Feb 12, 2026
@benbrandt benbrandt enabled auto-merge (squash) February 12, 2026 12:52
@oliverbarnes
Copy link
Contributor Author

Hm 🤔 weird, these build errors didn't come up yesterday when merging latest main in. Looking into it, @benbrandt

@oliverbarnes
Copy link
Contributor Author

Ok, fixed and tested manually again.

Apologies @benbrandt, yesterday I hydrated several branches with latest main, and apparently I missed double-checking this one. Clean merges can be deceiving.

auto-merge was automatically disabled February 12, 2026 13:40

Head branch was pushed to by a user without write access

@benbrandt benbrandt enabled auto-merge (squash) February 12, 2026 13:43
@benbrandt benbrandt merged commit dc56998 into zed-industries:main Feb 12, 2026
27 checks passed
@oliverbarnes oliverbarnes deleted the tool-calls-cleared branch February 12, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI Agent: tool call answers are cleared upon app close

3 participants