Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

feat(chat): let the agent find, load, and switch into its own past chats

merged#2855CedarCopilot

CedarCopilot wants to merge 6 commits into staging from feat/chat-history-search-agent-tool

14 files changed

Libra does not show diffs here. View the full diff on GitHub.

  • addedapps/mail/modules/cedar-os/__tests__/store/agentConnection/responseProcessors/threadSwitchResponseProcessor.test.tsx+104-0
  • modifiedapps/mail/modules/cedar-os/src/store/agentConnection/responseProcessors/initializeResponseProcessorRegistry.ts+2-0
  • addedapps/mail/modules/cedar-os/src/store/agentConnection/responseProcessors/threadSwitchResponseProcessor.ts+35-0
  • modifiedapps/server/src/db/chat-schema.ts+7-0
  • addedapps/server/src/db/migrations/chat_search_trgm.sql+61-0
  • modifiedapps/server/src/mastra/agents/chat-agent.ts+9-03 defects
  • modifiedapps/server/src/mastra/tools/__tests__/approval-flag-guard.test.ts+2-0
  • modifiedapps/server/src/mastra/tools/__tests__/master-surface.test.ts+7-1
  • addedapps/server/src/mastra/tools/chat/loadChatHistoryTool.ts+96-0
  • addedapps/server/src/mastra/tools/chat/searchChatHistoryTool.ts+83-0
  • addedapps/server/src/mastra/tools/chat/switchChatThreadTool.ts+102-0
  • modifiedapps/server/src/mastra/tools/master-surface.ts+17-31 defect
  • addedapps/server/src/services/chat/search-chat-threads.integration.test.ts+100-0
  • addedapps/server/src/services/chat/search-chat-threads.ts+128-0