Skip to content

fix(contextchat): use a consistent item id for indexed messages - #13443

Open
kesselb wants to merge 1 commit into
mainfrom
fix/context-chat-item-id
Open

fix(contextchat): use a consistent item id for indexed messages#13443
kesselb wants to merge 1 commit into
mainfrom
fix/context-chat-item-id

Conversation

@kesselb

@kesselb kesselb commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Content was indexed as "{mailboxId}:{messageId}" but deleted by bare IMAP uid, so deleting a message never removed it from the knowledge base. Key both sides off account, mailbox and uid via a shared helper.

  • Todo: Check with integration how to clear the existing data

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kesselb

kesselb commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable5.10

Content was indexed as "{mailboxId}:{messageId}" but deleted by bare
IMAP uid, so deleting a message never removed it from the knowledge
base. Key both sides off account, mailbox and uid via a shared helper.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>

# Conflicts:
#	lib/ContextChat/ContextChatProvider.php
@kesselb
kesselb force-pushed the fix/context-chat-item-id branch from d190fbe to 7fadd20 Compare August 9, 2026 15:22
@ChristophWurst

Copy link
Copy Markdown
Member

/backport to stable5.11

@edward-ly
edward-ly requested a review from marcelklehr August 10, 2026 20:08

@edward-ly edward-ly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also roping in @marcelklehr for additional insight. I'll test this later if I have time, but it looks good to me so far. Do we need to do some sort of migration as well (e.g. updating the IDs of existing items, or deleting and re-importing all messages again)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants