You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(core): Implement persistent storage path for chat attachments - #735
- Introduce `storagePath` to `FileAttachment` model and associated DTOs, ensuring files are persistently managed after initial composition.
- Update the database schema and repository layer to save and retrieve file attachment storage paths.
- Enhance `ChatSessionService` to manage attachment lifecycle, including content extraction and cleanup from disk storage.
- Improve text extraction from multimodal messages by handling and preserving image data separately for accurate content representation.
- Update UI components to correctly resolve file download paths using the new storage path logic.
BREAKING CHANGE: File attachment handling now relies on a persistent `storagePath` rather than just temporary file paths, requiring consumers to adapt to the new model structure.
AppTextStyles.code is documented and implemented as a labelSmall style for short inline snippets, whereas this control is a multi-line YAML editor that previously used the dedicated 13sp/21sp codeBlock style. Replacing it changes the editor's readability and violates the style contract; retain a dedicated multi-line editor style (or add an equivalent replacement) rather than using the inline token.
Filtering out all image content leaves the token budget with no visual-token estimate; an image-only message is counted as the minimum one token even though enforceTokenBudget uses this value to decide how much history to retain. With multiple or high-resolution images this can retain a request beyond the model's actual context and still trigger the context-window failure this change targets. Add a conservative/provider-aware image budget before accepting older message groups.
Correct DTO documentation for repository-managed fields
This note says messageId and sessionId are provided by this DTO for compatibility, but both fields were removed from the DTO. The documentation now misstates the public shape and may lead callers to look for properties that do not exist; describe them as repository-managed reference-table fields instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
storagePathtoFileAttachmentmodel and associated DTOs, ensuring files are persistently managed after initial composition.ChatSessionServiceto manage attachment lifecycle, including content extraction and cleanup from disk storage.Related Issue(s)
#734
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes