88
}
89
if (isTextualContentType(att.contentType)) {
91
>
// editor (or a selection within one) as a `text/plain`
92
>
// embedded resource. Decode it and inline it into the
93
>
// prompt so codex sees the exact in-memory content — a
94
>
// `@<path>` mention would read the stale on-disk file (or
95
>
// nothing at all for an untitled buffer).
96
>
const inlined = renderTextualEmbeddedResource(att);
97
>
if (inlined) {
98
>
textChunks.push(inlined);
99
>
}
100
>
break;
101
>
}
102
// Non-textual, non-image embedded resources (e.g.
103
// application/pdf) are not supported and are dropped.