Repository navigation
feat: improve file attachment pasting - #1704
Merged
Merged
Conversation
Member
|
does this break drag&drop images onto opencode? |
Contributor
Author
Good catch. I hadn't considered images and pdfs. Added proper handling so those files will always be attached. |
Collaborator
|
Edit: this broke drag & drop |
adamdotdevin
added a commit
that referenced
this pull request
Aug 11, 2025
This reverts commit 81a3e02.
Member
reverted for now, @neominik would you have any time to look into these issues and resubmit a PR? |
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
This reverts commit 03f7274.
bussard76
pushed a commit
to bussard76/openwork
that referenced
this pull request
May 12, 2026
Expose OpenCode Zen ('opencode' provider) in the Provider Auth modal so
users can paste an API key from https://opencode.ai/auth and unlock paid
Zen models alongside the free public-tier models that already work
without auth.
- store.ts: drop the explicit 'opencode' skip in buildProviderAuthMethods
so an API key method is registered like every other env-keyed provider.
- settings-route.tsx: also strip blocked provider IDs from authMethods
before passing to the modal. The modal builds entries from
Object.keys(authMethods), so the existing isDesktopProviderBlocked
filter on 'providers' alone was not enough to honor blockZenModel.
- provider-auth-modal.tsx: add Zen-branded copy and a 'Get an API key'
link to https://opencode.ai/auth in the API key view, plus a friendlier
description on the method-selection step. Default fallback label is now
'OpenCode Zen' instead of 'OpenCode'.
The blockZenModel org policy continues to hide the entry entirely for
restricted orgs.
Co-authored-by: src-opn <src-opn@users.noreply.github.com>
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
This reverts commit c8089af.
meSingh
pushed a commit
to meSingh/opencode
that referenced
this pull request
Sep 6, 2026
meSingh
pushed a commit
to meSingh/opencode
that referenced
this pull request
Sep 6, 2026
This reverts commit 72c9231.
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.
When there are (one or multiple) @existing/paths in a pasted message (e.g., someone copied a previous message from opencode), attachments will properly be created for those.
When typing @ followed by pasting a path, an attachment will be created as well.
Pasting a path without typing @ or including an @ in the pasted message itself just pastes the text without creating an attachment, so we can mention large files or folders without including them in the context.
Fixes #1477