Skip to content

fix: attachment bugs#1335

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
rekram1-node:fix-file-upload
Jul 27, 2025
Merged

fix: attachment bugs#1335
adamdotdevin merged 1 commit into
anomalyco:devfrom
rekram1-node:fix-file-upload

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

fixes: #1330

  • file URLs should not have their paths percent-encoded
  • always uses absolute paths for file resolution

Now I have tested this a variety of ways:
@ references (text & image)
drag & drop files that live within and outside of the cwd (text & image)

Maybe there is something I am missing here but at least for me this fixes all attachment bugs I have ran into

@adamdotdevin
Copy link
Copy Markdown
Member

did the assistant call the read tool on the attached file immediately? that's the only potential side effect i can imagine creeping in. @thdxr any other issues you can think of using absolute paths for attachments like this?

@rekram1-node
Copy link
Copy Markdown
Collaborator Author

I think the behavior read tool wise remains the same unless I misunderstand, here is a share link: https://dev.opencode.ai/s/0yPBxwRs

Excerpt:

        {
          "id": "prt_8472f0c64001jdr4sn8Vu2jMiW",
          "messageID": "msg_8472f0c59001W6y6LpDGiWWp7Q",
          "sessionID": "ses_7b8d0f3abffeBkSA340yPBxwRs",
          "type": "text",
          "synthetic": true,
          "text": "Called the Read tool with the following input: {\"filePath\":\"/Users/aidencline/Desktop/testing/hello.txt\"}"
        },
        {
          "id": "prt_8472f0c640028HAnuEfDEQMgSZ",
          "messageID": "msg_8472f0c59001W6y6LpDGiWWp7Q",
          "sessionID": "ses_7b8d0f3abffeBkSA340yPBxwRs",
          "type": "text",
          "synthetic": true,
          "text": "\u003Cfile\u003E\n00001| Hello MR. LLM\n00002| \n\u003C/file\u003E"
        }

@adamdotdevin adamdotdevin merged commit b18b646 into anomalyco:dev Jul 27, 2025
pepperpepperpepper pushed a commit to pepperpepperpepper/opencode that referenced this pull request Jul 29, 2025
achembarpu pushed a commit to achembarpu/opencode that referenced this pull request Aug 4, 2025
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
* fix(docs): restore migrated share skill links

Republish the example skill bundles on share.openworklabs.com so the docs point at live imports again, and align share bundle examples with the current publisher host.

* fix(server): use canonical shared bundle data urls

Rebuild trusted share fetch URLs to the share service's canonical /b/:id/data endpoint and cover the path with the live provider-config-helper bundle URL.
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.

bug: drag & drop text file results in error

2 participants