Repository navigation
feat: attach open files to the session draft - #179609
Merged
Merged
Conversation
vyctorbrzezowski
marked this pull request as ready for review
October 21, 2026 15:10
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Member
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
* feat: attach open files to the session draft * test: use the authorized URL contract for file attachments
This was referenced Oct 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Adding a file already open in the Control UI to a chat message requires downloading and selecting it again.
User Impact
Choose Attach to session in the file toolbar's ⋯ menu to add the open file to the existing message draft. Sending remains an explicit action.
Why This Change Was Made
The viewer reads the authorized original file and hands it to the existing attachment admission and draft owners. Text with unsaved editor changes uses the editor's retained draft without saving the file. Pending reads are canceled when the file, session, connection, or viewer changes. Images, downloadable files, and the native PDF viewer use the same action.
Evidence
Risk and coverage
Browser proof uses synthetic data and the real UI attachment/draft/send owners with a mocked Gateway; no live model or external delivery was invoked. Native-device behavior was not exercised. Scoped lint retains three existing Solid reactivity warnings in unchanged code.
Screenshots below show the original menu, the new action, and the file staged in the existing composer.