Skip to content

feat: improve file attachment pasting - #1704

Merged
adamdotdevin merged 2 commits into
anomalyco:devfrom
neominik:feat/attchement-pasting
Aug 9, 2025
Merged

adamdotdevin merged 2 commits into
anomalyco:devfrom
neominik:feat/attchement-pasting

Conversation

@neominik

@neominik neominik commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

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

@adamdotdevin

Copy link
Copy Markdown
Member

does this break drag&drop images onto opencode?

@neominik

neominik commented Aug 8, 2025

Copy link
Copy Markdown
Contributor Author

does this break drag&drop images onto opencode?

Good catch. I hadn't considered images and pdfs. Added proper handling so those files will always be attached.

@rekram1-node

rekram1-node commented Aug 8, 2025 •

Copy link
Copy Markdown
Collaborator

tested this, seems to work well

Edit: this broke drag & drop

@adamdotdevin
adamdotdevin merged commit 81a3e02 into anomalyco:dev Aug 9, 2025
adamdotdevin added a commit that referenced this pull request Aug 11, 2025
@adamdotdevin

Copy link
Copy Markdown
Member

tested this, seems to work well

Edit: this broke drag & drop

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
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
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
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.

how the heck can i paste in a filename without the @

3 participants