Skip to content

fix(grok): send native image blocks on extra Grok slots too - #485

Open
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:feat/grok-extra-slot-images
Open

fix(grok): send native image blocks on extra Grok slots too#485
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:feat/grok-extra-slot-images

Conversation

@Adam-Dalloul

Copy link
Copy Markdown
Contributor

Built-in Grok already forces image: true and normalize_grok_image_blocks on main. Extra isolated slots (custom:grok-2, …) are AgentType::Custom, so they still advertised image: false and sent Resource blobs. Grok dumps those as binary and invents a description.

This treats custom:grok-* the same as built-in Grok on both the capability bit and dispatch. The composer also emits a native Image block for those agent ids even if initialize still lies.

Does not change Claude / Codex / other custom agents. No secrets. One concern.

@Adam-Dalloul
Adam-Dalloul force-pushed the feat/grok-extra-slot-images branch from 625891b to 99fc2ba Compare August 16, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant