You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desktop: identify attachments in remove button names #68220
In OpenCode Desktop on Linux, Orca announces an attachment’s remove button as “Remove attachment” without identifying the file. With multiple attachments, it is difficult to tell which one a button will remove.
Each button should identify its attachment, for example “Remove attachment: image.png”.
The composer is shared with the web UI, so a fix may affect both.
OpenCode version
Development checkout b4de2c70bb.
Steps to reproduce
Open a session and attach two different files.
With Orca running, use Tab to navigate to their remove buttons.
Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.
This still happens on the latest dev (eed42a3).
I built Desktop from source on Linux, attached image.png and notes.txt in the composer, and read the remove buttons' accessible names. Both are exactly Remove attachment. Only the image and the file card next to them carry the file name:
The recording, screenshot and script below show it. I used a simulated server and attached the files through the composer's file input, not the system file picker.
Likely cause (not confirmed): ComposerAttachments in packages/app/src/composer/editor/editor.tsx puts one shared removeLabel (set at line 308) on every remove button (lines 877, 906 and 954). Comment and context-file chips probably have the same problem. Since this component is shared, the web UI is likely affected too.
import{Effect}from"effect"import{defineScript}from"opencode-drive"// Attach two files in the Desktop composer and print the accessible names of their remove buttons.constpng=Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==","base64",)exportdefaultdefineScript({launch: "gui",gui: {timeout: 600_000},run: ({ gui })=>Effect.gen(function*(){yield*Effect.promise(async()=>{awaitgui.locator('[data-component="composer-editor"]').waitFor({timeout: 300_000})awaitgui.locator('input[type="file"]').first().setInputFiles([{name: "image.png",mimeType: "image/png",buffer: png},{name: "notes.txt",mimeType: "text/plain",buffer: Buffer.from("hello\n")},])conststrip=gui.locator('[data-component="composer-attachments"]')awaitstrip.waitFor({timeout: 30_000})awaitgui.waitForTimeout(1500)constbuttons=strip.locator("button")constcount=awaitbuttons.count()console.log(`remove buttons: ${count}`)for(leti=0;i<count;i++){console.log(`button ${i} aria-label: ${JSON.stringify(awaitbuttons.nth(i).getAttribute("aria-label"))}`)}// What a screen reader gets: the accessibility tree of the attachment strip.console.log(awaitstrip.ariaSnapshot())awaitbuttons.first().focus()awaitgui.screenshot({path: `${process.env.OPENCODE_DRIVE_MEDIA_DIR}/problem.png`})})}),})
Run it with opencode-drive from an OpenCode checkout: opencode-drive start --dev <checkout> --script ./drive.ts. It drives OpenCode Desktop built from that checkout.
Hi! I'm a junior QA/Automation developer looking to contribute. I can see this is an accessibility issue where the remove button is missing the attachment name in its accessible label. Is anyone currently assigned to this? If not, I'd love to submit a PR to fix the ARIA labels.
Activity
opencodejr commentedon Dec 4, 2026
Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.
This still happens on the latest
dev(eed42a3).I built Desktop from source on Linux, attached
image.pngandnotes.txtin the composer, and read the remove buttons' accessible names. Both are exactlyRemove attachment. Only the image and the file card next to them carry the file name:The recording, screenshot and script below show it. I used a simulated server and attached the files through the composer's file input, not the system file picker.
Likely cause (not confirmed):
ComposerAttachmentsinpackages/app/src/composer/editor/editor.tsxputs one sharedremoveLabel(set at line 308) on every remove button (lines 877, 906 and 954). Comment and context-file chips probably have the same problem. Since this component is shared, the web UI is likely affected too.https://anoma.ly/team/github-bot/media/5c1edb6ec0c6c3606f7ac5a047071a3f183c07e0990870d4d1ef45270c6a83a6.mp4
Reproduction script (drive.ts)
Run it with opencode-drive from an OpenCode checkout:
opencode-drive start --dev <checkout> --script ./drive.ts. It drives OpenCode Desktop built from that checkout.opencodejr commentedon Dec 4, 2026
I opened a pull request with a fix: #68227. A maintainer will review it.
Olegoverman commentedon Dec 5, 2026
Hi! I'm a junior QA/Automation developer looking to contribute. I can see this is an accessibility issue where the remove button is missing the attachment name in its accessible label. Is anyone currently assigned to this? If not, I'd love to submit a PR to fix the ARIA labels.