Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity `carousel` code blocks render embedded local images as raw code text #49763

OpenZionHeZY(GitHub profile, opens in a new tab) opened this issue 0 comments
ZionHeZY(GitHub profile, opens in a new tab)commented

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

  1. Start a thread in T3 Code using the Antigravity provider (e.g., agy 1.5.25 with gemini-4-neon or claude-opus-5-5).
  2. Have the agent capture multiple local screenshots (for example, a before/after UI comparison) and present them in its reply.
  3. 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 (![caption](/abs/path/to/image.png)) 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 ![...](/abs/path.png) 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 recommends carousel code blocks + <!-- slide --> for multi-image comparisons and walkthroughs.
  • Antigravity's <cli_overrides> section suppresses sidecar:// links and Antigravity Desktop UI references when running outside the desktop app, but does not disable carousel fences.
  • T3 Code injects "You can embed images, video, and audio using Markdown image syntax with absolute file paths" in <runtime_info>, which works for bare ![alt](/abs/path) embeds, but does not warn Antigravity against wrapping them in carousel fences — and T3 Code's Markdown renderer does not recognize carousel blocks.

Possible fixes

  1. Client-side Markdown rendering: Parse carousel fenced 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.
  2. Server-side Antigravity prompt override: Explicitly instruct Antigravity not to wrap image embeds in carousel code blocks when running in T3 Code, and to emit standard Markdown ![alt](/abs/path) embeds 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
![State 1](/path/to/screenshot_01.png)
<!-- slide -->
![State 2](/path/to/screenshot_02.png)
<!-- slide -->
![State 3](/path/to/screenshot_03.png)
````

# Earlier turn in the same thread without a carousel fence (rendered images properly):
![State 1](/path/to/screenshot_01.png)
![State 2](/path/to/screenshot_02.png)

Workaround

Instruct the agent in the thread or in global AGENTS.md to emit standard Markdown ![caption](/abs/path) embeds directly and never wrap images in carousel / <!-- slide --> code blocks.

  1. tanstack-source added labelsbug

Sign in to join this conversation.