Skip to content

Model pushing special tokens to Gemini CLI #4486

@segin

Description

@segin

What happened?

At random times, the gemini-2.5-pro model will emit repetitive strings of special tokens that map to <ctrl46>. There is a brief example of this behavior in an unrelated open issue, #2008, in the "Additional Context" section.

Image

What did you expect to happen?

The Gemini model to produce a coherent response, not <ctrl46><ctrl46><ctrl46><ctrl46><ctrl46><ctrl46>... ad nauseam.

Client information

Details
╭────────────────────────────────────────────────────────────────────╮
│                                                                    │
│ About Gemini CLI                                                   │
│                                                                    │
│ CLI Version            0.1.12                                      │
│ Git Commit             b29c02dd (local modifications)              │
│ Model                  gemini-2.5-pro                              │
│ Sandbox                no sandbox                                  │
│ OS                     linux                                       │
│ Auth Method            gemini-api-key                              │
│                                                                    │
╰────────────────────────────────────────────────────────────────────╯
Image

Login information

API key

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitypriority/p1Important and should be addressed in the near term.

    Type

    No fields configured for Bug.

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions