Skip to content

Fix pasted attachments#1659

Merged
dgageot merged 1 commit intodocker:mainfrom
krissetto:pasted-attachments-fix
Feb 9, 2026
Merged

Fix pasted attachments#1659
dgageot merged 1 commit intodocker:mainfrom
krissetto:pasted-attachments-fix

Conversation

@krissetto
Copy link
Contributor

No description provided.

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto force-pushed the pasted-attachments-fix branch from a60fae8 to 00c6b45 Compare February 9, 2026 16:19
@krissetto krissetto marked this pull request as ready for review February 9, 2026 17:26
@krissetto krissetto requested a review from a team as a code owner February 9, 2026 17:26
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Review Summary

Approved - No issues found

This PR successfully refactors attachment handling from map[string]string to a structured []messages.Attachment type. The changes are well-designed:

  • Clear separation between file-reference attachments (FilePath set) and inline content attachments (Content set)
  • Proper error handling and context cancellation throughout
  • Intentional temp file cleanup for paste attachments
  • Early path resolution to absolute paths prevents working directory issues

The code is clean, well-commented, and the tests have been updated appropriately.

Copy link
Contributor

@trungutt trungutt left a comment

Choose a reason for hiding this comment

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

It works for me

@dgageot
Copy link
Member

dgageot commented Feb 9, 2026

Same for me

@dgageot dgageot merged commit fa38a46 into docker:main Feb 9, 2026
14 of 18 checks passed
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.

3 participants