Skip to content

fix: drop attachment from compaction - #1874

Merged
tusharmath merged 9 commits into
mainfrom
content-tag
Nov 9, 2025
Merged

tusharmath merged 9 commits into
mainfrom
content-tag

Conversation

@tusharmath

Copy link
Copy Markdown
Collaborator
  • refactor: simplify TextMessage creation in tests and transformers
  • refactor: streamline TextMessage creation in tests for improved readability
  • feat: add droppable field to TextMessage and update context handling
  • feat: add droppable message filtering in compaction and implement is_droppable method

@tusharmath tusharmath changed the title content tag fix: drop attachment from compaction Nov 9, 2025
- Implemented tests to verify that file content attachments are marked as droppable.
- Added tests to ensure image attachments are not droppable.
- Included tests for multiple file content attachments to confirm all are droppable.
- Updated the `add_attachments` method in Context to handle droppable logic correctly.
- Modified the message creation logic to support droppable attributes based on attachment type.
@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Nov 9, 2025
@tusharmath
tusharmath enabled auto-merge (squash) November 9, 2025 12:25
@tusharmath
tusharmath merged commit 87de08f into main Nov 9, 2025
1 check passed
@tusharmath
tusharmath deleted the content-tag branch November 9, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant