Skip to content

"!" in a pasted text triggers shell mode #16348

Description

@prescottbreeden

What happened?

Pasted some output as well as the command used to execute it (which often includes a ! git marker in my zsh) and it suddenly drops into shell mode

 echo "bob ross"                                                                                                                    main [9f766f4f]  (!)⚑   ✗
bob ross

What did you expect to happen?

I expect pasted text into a prompt to not trigger behaviors like entering shell mode

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                  │
│ About Gemini CLI                                                                                                                 │
│                                                                                                                                  │
│ CLI Version                                  0.25.0-nightly.20260107.59a18e710-git.db99bed                                       │
│ Git Commit                                   db99bed                                                                             │
│ Model                                        fiercefalcon                                                                        │
│ Sandbox                                      no sandbox                                                                          │
│ OS                                           linux                                                                               │
│ Auth Method                                  gemini-api-key                                                                      │
│ User Email                                   pbreeden@google.com                                                                 │
│                                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Login information

No response

Anything else we need to know?

@bbiggs

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitytype/bug🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions