[Bug]: Antigravity `carousel` code blocks render embedded local images as raw code text #49763
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
Not sure
Steps to reproduce#
- Start a thread in T3 Code using the Antigravity provider (e.g.,
agy1.5.25withgemini-4-neonorclaude-opus-5-5). - Have the agent capture multiple local screenshots (for example, a before/after UI comparison) and present them in its reply.
- View the assistant's response in T3 Code (desktop/web or iOS mobile client).
Expected behavior#
Local images included in the assistant's response should render inline (or in a gallery/carousel), matching how bare Markdown image embeds () already render in T3 Code.
Actual behavior#
Antigravity's built-in system prompt instructs the model to wrap sequential comparisons in a four-backtick carousel fenced code block delimited by <!-- slide --> comments (an Antigravity Desktop-specific Markdown extension).
Because T3 Code does not parse carousel fences, it renders the entire block as a standard code block labeled Carousel, showing raw  lines and <!-- slide --> comments as unrendered code text instead of displaying the images.
Once a carousel block appears once in a thread, subsequent turns in the same thread imitate that format from conversation history, so later multi-image responses also fail to display images.
Root cause#
- Antigravity's built-in
<artifacts>prompt recommendscarouselcode blocks +<!-- slide -->for multi-image comparisons and walkthroughs. - Antigravity's
<cli_overrides>section suppressessidecar://links and Antigravity Desktop UI references when running outside the desktop app, but does not disablecarouselfences. - T3 Code injects "You can embed images, video, and audio using Markdown image syntax with absolute file paths" in
<runtime_info>, which works for bareembeds, but does not warn Antigravity against wrapping them incarouselfences — and T3 Code's Markdown renderer does not recognizecarouselblocks.
Possible fixes#
- Client-side Markdown rendering: Parse
carouselfenced blocks (split on<!-- slide -->) in T3 Code's web/desktop and mobile Markdown renderers — either as a carousel/gallery or by rendering the inner Markdown slides directly. - Server-side Antigravity prompt override: Explicitly instruct Antigravity not to wrap image embeds in
carouselcode blocks when running in T3 Code, and to emit standard Markdownembeds instead.
Impact#
Minor bug or occasional failure
Version or commit#
0.1.15-nightly.20261205.5786
Environment#
macOS 27.2.1 (Apple Silicon), T3 Code Nightly 0.1.15-nightly.20261205.5786 (also reproduced on T3 Code iOS client), Antigravity ACP 1.5.25 (gemini-4-neon, claude-opus-5-5)
Logs or stack traces#
# Actual output emitted by Antigravity (renders as a raw "Carousel" code block in T3 Code):
````carousel

<!-- slide -->

<!-- slide -->

````
# Earlier turn in the same thread without a carousel fence (rendered images properly):


Workaround#
Instruct the agent in the thread or in global AGENTS.md to emit standard Markdown  embeds directly and never wrap images in carousel / <!-- slide --> code blocks.
tanstack-source added labelsbug
Sign in to join this conversation.