feat: better image handling (auto resize & max size constraints) (#26401)

This commit is contained in:
Aiden Cline
2026-05-10 01:48:19 -05:00
committed by GitHub
parent 5217e6c1af
commit 85ce6a5f95
18 changed files with 417 additions and 34 deletions
+12
View File
@@ -1132,6 +1132,17 @@ export type McpRemoteConfig = {
*/
export type LayoutConfig = "auto" | "stretch"
export type ImageAttachmentConfig = {
auto_resize?: boolean
max_width?: number
max_height?: number
max_base64_bytes?: number
}
export type AttachmentConfig = {
image?: ImageAttachmentConfig
}
export type Config = {
$schema?: string
shell?: string
@@ -1246,6 +1257,7 @@ export type Config = {
tools?: {
[key: string]: boolean
}
attachment?: AttachmentConfig
enterprise?: {
url?: string
}