Repository navigation
fix: preserve mcp tool error display for historic chats - #345
Conversation
Signed-off-by: Anish701 <anish2sinha@gmail.com>
|
No actionable comments were generated in the recent review. WalkthroughWhen Suggested reviewers: Change: Bug fix · Severity of issue fixed: Low Merge Risk:
|
|
Looks good to me. |
What
If an MCP tool call failed, the tool would be displayed in red as an error, but if user refreshed the page or went back to that conversation in history, the tool would go back to being showed as success. This is because the "status: error" field was not getting saved in chat history. This PR fixes the bug by saving status: message.status in chat history for MCP tools
Fixes #344
How
Testing
npm run dev)Rollback
revert the commit
Checklist
feat:,fix:,ci:, etc.)npm run lint && npm run test)