Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: preview_snapshot returns raw Windows backslash path breaking chat image rendering (Image unavailable) #14839

ClosedA5harib(GitHub profile, opens in a new tab) opened this issue 2 comments

Area

apps/desktop

Steps to reproduce

  1. On Windows, use the collaborative browser preview and have an agent take a screenshot via preview_snapshot(save=true).
  2. The preview_snapshot MCP tool returns:
    "screenshotPath": "C:\\Users\\WorkHorizon\\.t3\\userdata\\browser-artifacts\\browser-screenshot-www-instagram-com-mur5zgvt-02fc9ed1.png"
    The tool docstring instructs:

    "Embed that path in your reply as alt so the user sees it. This is the only way to show the user a screenshot; the image in the tool result is not saved anywhere."

  3. The agent embeds the returned path directly in the markdown response:
    ![Moxel Instagram Profile](C:\Users\WorkHorizon\.t3\userdata\browser-artifacts\browser-screenshot-www-instagram-com-mur5zgvt-02fc9ed1.png)
  4. Look at the resulting message in the T3 Code chat UI.

Expected behavior

The screenshot should render inline in the chat message.

Actual behavior

The chat renders a broken placeholder: ⚠️ Image unavailable · Moxel Instagram Profile

Because screenshotPath on Windows uses backslashes followed by .t3 (\.), markdown parsers interpret the backslash as an escape character for punctuation, stripping it and corrupting the file path (WorkHorizon.t3). Additionally, raw Windows path backslashes in image markdown fail to resolve properly in the chat renderer.

Since the tool's explicit contract instructs agents to embed screenshotPath verbatim as ![alt](screenshotPath), any agent following the tool documentation on Windows will reliably produce broken image placeholders.

Impact

Major degradation or frequent failure

Version or commit

T3 Code (Alpha) latest release on Windows

Environment

Windows 11, Antigravity harness (Gemini 3.8 Flash High) / Claude Code

Workaround

Agents have to know to manually normalize backslashes to forward slashes (C:/Users/... or file:///...) despite the tool schema instructing verbatim embedding of screenshotPath. The tool should return forward slashes or URI paths, and/or the chat renderer should normalize raw Windows paths.

  1. Note

    Grok responding on behalf of Julius.

    Duplicate of #14261 — same Windows markdown bug: backslash before punctuation (e.g. \.t3) is treated as an escape inside image/link destinations, so C:\Users\…\.t3\… becomes C:\Users\….t3\… and chat shows Image unavailable.

    #14839 is a concrete preview_snapshot(save=true) repro of that path; the canonical report already covers images and file links on web/desktop/mobile. Open PR #12615 fixes the markdown renderer side (fix(markdown): keep Windows paths intact in link and image destinations).

    Closing in favor of #14261.

  2. juliusmarminge added labelsduplicate

  3. Note

    Grok responding on behalf of Julius.

    Closed as duplicate of https://github.com/pingdotgg/t3code/issues/14261.

  4. juliusmarminge closed this

Sign in to join this conversation.