Skip to content

[Bug]: Antigravity send_to_user collapses into "Worked for..." as raw tool args instead of rendering a Markdown message #41349

Closed as not planned

Description

@michicodes

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start a thread using the Antigravity (ACP) provider on T3 Code 0.1.12-nightly.20261123.5124.
  2. Have the agent call mcp_t3-code_send_to_user with a Markdown message (standalone, without any other tool calls such as ask_question).
  3. Observe the rendered thread once the turn finishes (and also when ask_question follows in a subsequent tool step of the same turn).

Expected behavior

The Markdown content passed to send_to_user renders directly in the thread as a visible, uncollapsed Markdown message (including before an ask_question prompt).

Actual behavior

Even after PR #38956 (Antigravity send_to_user messages now show and T3 MCP tool labels resolve), calling mcp_t3-code_send_to_user does not render a visible Markdown message in the thread:

  1. The call is collapsed inside the Worked for Xs > activity group (invisible unless manually expanded).
  2. When expanded, the resolved label (T3 Sent a message / Sent 1 message) appears, but the body only displays the raw tool arguments (message ..., toolSummary ...) in monospace rather than rendering the Markdown inline.
  3. Because of this, workflows that use send_to_user to present a draft or summary before calling ask_question leave the user seeing only the question dialog with no visible context.

Impact

Major degradation or frequent failure

Version or commit

0.1.12-nightly.20261123.5124

Environment

macOS (darwin / arm64), T3 Code 0.1.12-nightly.20261123.5124, Antigravity (ACP)

Logs or stack traces

# No runtime error; tool returns successfully:
{"sentMessage": "...", "message": "Shown to the user. Don't repeat it."}

Workaround

Output the draft/summary as a normal final assistant message in its own turn without calling send_to_user or ask_question.

Activity

  1. changed the title [-][Antigravity] send_to_user still collapses into "Worked for..." as raw tool args instead of rendering a Markdown message[/-] [+][BUG] Antigravity send_to_user still collapses into "Worked for..." as raw tool args instead of rendering a Markdown message[/+] on Nov 23, 2026
  2. changed the title [-][BUG] Antigravity send_to_user still collapses into "Worked for..." as raw tool args instead of rendering a Markdown message[/-] [+][Bug]: Antigravity send_to_user collapses into "Worked for..." as raw tool args instead of rendering a Markdown message[/+] on Nov 23, 2026
  3. michicodes commented on Nov 23, 2026

    @michicodes
    Author

    Closing as duplicate — this is already covered by open PR #41335 (Antigravity ACP dropping MCP tool outputs so sentMessageFromToolItem receives output: undefined / NULL).

  4. juliusmarminge commented on Nov 23, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    Commit origin/main 7180578. Started T3CODE_DEV_SEED=0 GOOGLE_GEMINI_BASE_URL=<hub> vp run dev in a fresh worktree, enabled the Antigravity provider with the Gemini API key sign-in method (agy 1.5.15 on PATH), added a git project, and started threads with t3 thread start --provider antigravity --model <m> asking the agent to call send_to_user once with a Markdown string. All three models the hub serves (gemini-3.8-flash, gemini-4-neon, gemini-4-hydrogen) failed the turn with a 429 'Individual quota reached' / model_cooldown error (reset about 64h away), so no live turn ran. Instead I added a failing adapter test in apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts ('AntigravityAdapterV2 send_to_user messages'). It feeds the real Antigravity adapter and normalizeAntigravitySessionUpdate a send_to_user call shaped the way agy 1.5.8+ reports it: title 'Run mcp_t3-code_send_to_user', rawInput { message, toolSummary }, completed with no rawOutput. On main the completed t3-code.send_to_user item has sentMessageFromToolItem(item) === undefined, so clients render no inline message and the call folds into the work group, and item.input still contains toolSummary, which is the raw arguments the reporter sees. #38956 and #41335, which would fix this, are both still open.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  5. Dodhon commented on Nov 23, 2026

    @Dodhon

    Still reproducing live and asking to reopen—PR #41335 was closed unmerged, #38956 is still open, and the adapter test above already confirmed sentMessageFromToolItem(item) === undefined on origin/main.

    Environment:

    • T3 Code Nightly 0.1.12-nightly.20261122.5111 (Windows 11 x64)
    • Provider: Antigravity (T3-bundled agy 1.5.13, model gemini-4-neon)

    What happened:
    In a live turn, the agent called mcp_t3-code_send_to_user to present a Markdown summary right before calling ask_question. In thread activity, the completed t3-code.send_to_user item recorded only input: { message, toolSummary } with no output, so nothing rendered inline and the message stayed hidden under "Worked for...".

    Combined with #37111 (where ask_question puts "The agent has a question." as the prompt body and splits q1/q1_other), the user ends up with a question card and zero visible context for what the options refer to, forcing them to cancel and ask the agent to repeat the explanation in plain chat.

    Could this be reopened to track #38956 until a fix merges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions