refactor(core): rename attachments config to media (#39927)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-31 13:26:53 -05:00 committed by GitHub
commit e60e8d9387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 23 additions and 23 deletions

View file

@ -111,7 +111,7 @@ Configure image normalization in `opencode.json` or `opencode.jsonc`:
```jsonc title="opencode.jsonc"
{
"$schema": "https://opencode.ai/config.json",
"attachments": {
"media": {
"image": {
"auto_resize": true,
"max_width": 2000,

View file

@ -267,14 +267,14 @@ this field, but it does not start language servers yet.
See the [LSP guide](/lsp) for accepted fields and current limitations.
### Attachments
### Media
Control how oversized images loaded by the `read` tool are resized or rejected
before they are sent to a model.
```jsonc
{
"attachments": {
"media": {
"image": {
"auto_resize": true,
"max_width": 2000,

View file

@ -175,16 +175,16 @@ Rename the singular `snapshot` field to `snapshots`. Its boolean value does not
{ "snapshots": false }
```
### Attachments
### Media
Rename the singular `attachment` object to `attachments`. Nested image settings keep the same names:
Rename the singular `attachment` object to `media`. Nested image settings keep the same names:
```jsonc
// V1
{ "attachment": { "image": { "auto_resize": true } } }
// V2
{ "attachments": { "image": { "auto_resize": true } } }
{ "media": { "image": { "auto_resize": true } } }
```
### MCP servers