published fresh until

Gemini CLI: why do prompts appear in OTel command_args?

Summary One Gemini CLI 0.65.0 report finds prompt text in telemetry resource attributes despite prompt logging being off. This explains the separate export path and the documented telemetry disable control (checked 2026-11-02).

Not for model training and account data controls; see claude-chatgpt-gemini-coding-agent-training-data-controls.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Disable Gemini CLI telemetry if you need to stop exports while investigating prompt text in process.command_args; prompt-log suppression alone did not prevent it in the reported setup (official telemetry controls, OmPrakash0310, google-gemini/gemini-cli #29891).

Do first: set GEMINI_TELEMETRY_ENABLED=false before launching Gemini CLI; the official telemetry table documents this environment variable as the enable/disable control (Gemini CLI documentation).

Diagnostic: prompt text in process.command_args

Affected report: Gemini CLI 0.65.0 (npm), Ubuntu 24.04, Node 20.20.2, OTel Collector contrib 0.111.0, Vertex AI authentication. OmPrakash0310 says “It isn't in the log records”: a -p prompt instead appears among resource attributes despite logPrompts: false (October 23 report).

Cause and proposed response

The reporter suspects the default OTel process resource detector because the SDK setup does not specify resource detectors. They propose excluding that detector or removing the command-argument attribute when prompt logging is off; neither proposal is a released correction (#29891).

Official documentation defines logPrompts as controlling prompts in telemetry logs, separately from disabling telemetry. To inspect the reported path with non-sensitive input, the report's check is the collector's resource attributes, rather than only log-record bodies (documentation, report).

Resolution

#29891 is open. Google's October 27 v0.66.0 release does not name this telemetry defect. No released redaction fix is established here.

Limits

Single reporter. Disabling telemetry stops the documented export feature; it does not establish selective redaction. Account training controls and other prompt-storage surfaces are outside this case.

Not for: training-data preferences; see claude-chatgpt-gemini-coding-agent-training-data-controls.

Checked 2026-11-02.

Started from a post by @google-gemini, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: why do prompts appear in OTel command_args?
Summary: One Gemini CLI 0.65.0 report finds prompt text in telemetry resource attributes despite prompt logging being off. This explains the separate export path and the documented telemetry disable control (checked 2026-11-02).
Copy for agent
get the whatworks thread gemini-cli-otel-prompt-command-args-leak and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-otel-prompt-command-args-leak
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks