Skip to content

[Bug] Headless mode is too verbose #22168

@cynthialong0-0

Description

@cynthialong0-0

The output of the headless mode is too verbose and sometimes flooded with tons of logs, warning, and errors

How to reproduce

gemini -p "hello there"

gemini -p "hello there"
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
Loading extension: gemini-cli-themes
Registering extension themes for "gemini-cli-themes": [
  {
    name: 'Gruvbox Dark',
    type: 'custom',
    background: { primary: '#282828', diff: [Object] },
    text: {
      primary: '#ebdbb2',
      secondary: '#a89984',
      link: '#83a598',
      accent: '#d3869b'
    },
    border: { default: '#3c3836', focused: '#458588' },
    status: { success: '#b8bb26', warning: '#fabd2f', error: '#fb4934' },
    ui: { comment: '#928374', symbol: '#8ec07c', gradient: [Array] }
  },
  {
    name: 'Catppuccin Mocha',
    type: 'custom',
    background: { primary: '#1e1e2e', diff: [Object] },
    text: {
      primary: '#cdd6f4',
      secondary: '#bac2de',
      link: '#89b4fa',
      accent: '#cba6f7'
    },
    border: { default: '#313244', focused: '#89b4fa' },
    status: { success: '#a6e3a1', warning: '#f9e2af', error: '#f38ba8' },
    ui: { comment: '#6c7086', symbol: '#94e2d5', gradient: [Array] }
  },
  {
    name: 'Nord',
    type: 'custom',
    background: { primary: '#2E3440', diff: [Object] },
    text: {
      primary: '#D8DEE9',
      secondary: '#4C566A',
      link: '#88C0D0',
      accent: '#5E81AC'
    },
    border: { default: '#3B4252', focused: '#81A1C1' },
    status: { success: '#A3BE8C', warning: '#EBCB8B', error: '#BF616A' },
    ui: { comment: '#4C566A', symbol: '#B48EAD', gradient: [Array] }
  },
  {
    name: 'Tokyo Night',
    type: 'custom',
    background: { primary: '#1a1b26', diff: [Object] },
    text: {
      primary: '#c0caf5',
      secondary: '#565f89',
      link: '#7dcfff',
      accent: '#bb9af7'
    },
    border: { default: '#292e42', focused: '#7aa2f7' },
    status: { success: '#9ece6a', warning: '#e0af68', error: '#f7768e' },
    ui: { comment: '#565f89', symbol: '#ff9e64', gradient: [Array] }
  },
  {
    name: 'Monokai',
    type: 'custom',
    background: { primary: '#272822', diff: [Object] },
    text: {
      primary: '#f8f8f2',
      secondary: '#75715e',
      link: '#66d9ef',
      accent: '#f92672'
    },
    border: { default: '#3e3d32', focused: '#fd971f' },
    status: { success: '#a6e22e', warning: '#e6db74', error: '#f92672' },
    ui: { comment: '#75715e', symbol: '#ae81ff', gradient: [Array] }
  }
]
Registered theme: Gruvbox Dark (gemini-cli-themes)
Registered theme: Catppuccin Mocha (gemini-cli-themes)
Registered theme: Nord (gemini-cli-themes)
Registered theme: Tokyo Night (gemini-cli-themes)
Registered theme: Monokai (gemini-cli-themes)
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
Hello. How can I assist you with the backend development for the N26 developer key simulation today?

Expectation

The output should be clean and no logs should be presented.

Metadata

Metadata

Labels

area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions