You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Unavailable image in work-log data-image-gallery expands to full-width 16:9 card instead of matching 10rem strip #41555
Observe the collapsed work-log image strip (div[data-image-gallery]) in the thread timeline.
Expected behavior
Unavailable items in the compact work-log data-image-gallery strip (maxHeightRem={10}) stay compact (for example, an inline chip like the non-standalone unavailable badge, or a small bounded placeholder sized for the 10rem gallery row), rather than expanding across the full width of the thread column.
Actual behavior
Loaded portrait thumbnails receive imageDimensions from assets.createUrl, so the size helper computes maxWidth: min(100%, 30rem, 10 * w / h rem) (~74x160 px for a 393x852 image).
Failed thumbnails (sourceFailed: true, e.g. after AssetWorkspaceAssetNotFoundError) have imageDimensions === undefined, so EnvironmentMedia passes only style={{ maxHeight: "10rem" }} (with no width or aspect-ratio constraint) into the standalone fallback element.
That standalone fallback renders with aspect-video w-full max-w-[min(100%,30rem)] inside div[data-image-gallery] (flex flex-wrap items-start gap-2), expanding every missing thumbnail into a 480x160 px full-width dark rectangle stacked vertically one per row. When a few temporary screenshots are unavailable, the placeholders dominate the transcript and look like giant wide images failed to load.
Impact
Cosmetic issue
Version or commit
0.1.12-nightly.20261122.5111
Environment
Ubuntu 26.04 LTS, T3 Code Web UI (0.1.12-nightly.20261122.5111), Antigravity ACP
Logs or stack traces
AssetAccess.finalizeAbsoluteMediaFileAsset -> Failure
AssetWorkspaceAssetNotFoundError: Media file was not found.
Workaround
Avoid deleting inspected temporary images mid-thread (tracked separately for persistence in #41480).
I'm looking at this one — the failed-thumbnail path in ChatMarkdownAssetImage gets only maxHeight: 10rem (no width or aspect bound) while the standalone frame is aspect-video w-full, so it renders as a full-width 16:9 block. Will open a PR once I have a regression test on the gallery strip.
Activity
2SinceJuly commentedon Nov 23, 2026
I'm looking at this one — the failed-thumbnail path in
ChatMarkdownAssetImagegets onlymaxHeight: 10rem(no width or aspect bound) while the standalone frame isaspect-video w-full, so it renders as a full-width 16:9 block. Will open a PR once I have a regression test on the gallery strip.