Skip to content

feat(assistants): Pas chat history to CodeMie agents#140

Open
Dark-Sun wants to merge 5 commits intocodemie-ai:mainfrom
Dark-Sun:feature/assistants-chat-history
Open

feat(assistants): Pas chat history to CodeMie agents#140
Dark-Sun wants to merge 5 commits intocodemie-ai:mainfrom
Dark-Sun:feature/assistants-chat-history

Conversation

@Dark-Sun
Copy link
Contributor

@Dark-Sun Dark-Sun commented Feb 11, 2026

Problem 🐛:

Chat command couldn't access recent conversation history because historyLoader only loaded successfully synced messages. With 2-minute sync intervals,
recent messages were unavailable, breaking conversation context.

Solution ✨:

  • 🚀 Include pending (not-yet-synced) messages in history loader for immediate availability
  • 🏗️ Refactor conversation sync module for better maintainability:
    • Renamed files: conversation-types.tstypes.ts, conversation-sync-processor.tssyncProcessor.ts, conversation-api-client.tsapiClient.ts
    • Extracted shared constants to constants.ts
    • Replaced hardcoded status strings with CONVERSATION_SYNC_STATUS constants across all conversation processors (Claude, Gemini, sync processor)

@Dark-Sun Dark-Sun marked this pull request as draft February 11, 2026 06:45
@Dark-Sun Dark-Sun marked this pull request as ready for review February 11, 2026 07:06
* Maximum number of history messages to load from previous sessions
* This prevents sending excessively large context to the API
*/
const MAX_HISTORY_MESSAGES = 20;
Copy link
Collaborator

Choose a reason for hiding this comment

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

need to move it to config

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