What happened
BB accepts a Markdown attachment when creating an OpenCode (my custom opencode provider plugin) thread, but the turn fails before inference with:
'file part media type text/markdown' functionality not supported.
Later text-only messages such as resume fail with the same error, so the thread cannot recover normally.
What should happen
OpenCode threads should receive supported file input, such as a staged file-path text marker, or BB should reject unsupported attachments before starting the turn with an actionable message. A rejected attachment should not prevent later text-only turns from running.
Repro
- Create a BB thread with the OpenCode provider.
- Attach a
.md file with MIME type text/markdown.
- Send the message.
- Observe that the turn fails immediately.
- Send a text-only follow-up.
- Observe the same attachment error again.
Evidence
- Reproduced in thread
thr_7cyd92n6md on BB 0.42.2-nightly.34486466131.1.
- Each failed turn reports the exact error above with no model output.
packages/provider-bridge-acp/src/bridge/bridge.ts:1290-1296 converts every localFile to an ACP resource_link without provider capability handling.
packages/provider-bridge-acp/src/bridge/bridge.test.ts has no localFile or resource_link coverage.
- Codex and Pi bridges already use path-bearing text markers for
localFile, which provides a compatible fallback pattern.
Acceptance
AGENT GENERATED
What happened
BB accepts a Markdown attachment when creating an OpenCode (my custom opencode provider plugin) thread, but the turn fails before inference with:
Later text-only messages such as
resumefail with the same error, so the thread cannot recover normally.What should happen
OpenCode threads should receive supported file input, such as a staged file-path text marker, or BB should reject unsupported attachments before starting the turn with an actionable message. A rejected attachment should not prevent later text-only turns from running.
Repro
.mdfile with MIME typetext/markdown.Evidence
thr_7cyd92n6mdon BB0.42.2-nightly.34486466131.1.packages/provider-bridge-acp/src/bridge/bridge.ts:1290-1296converts everylocalFileto an ACPresource_linkwithout provider capability handling.packages/provider-bridge-acp/src/bridge/bridge.test.tshas nolocalFileorresource_linkcoverage.localFile, which provides a compatible fallback pattern.Acceptance