warpdotdev / Warp

Warp is the agentic development environment, built for coding with multiple AI agents.
https://warp.dev
Other
24.04k stars 492 forks source link

Typing "@" with no prefix triggers file context popup in repos when not in agent mode #6618

Open KingMob opened 3 weeks ago

KingMob commented 3 weeks ago

Pre-submit Checks

Describe the bug

I updated to v0.2025.06.18.08.11.stable_02, and now, whenever I type @ with no prefix in a repository, I get a file popup to add files to the context. However, I'm not in agent mode.

I use Jujutsu version control, which uses @ to denote the current revision, and thus, I'm typing it a lot. The popup's incredibly annoying, and I couldn't find a setting to turn it off.

Even disabling AI entirely didn't stop it!


The screenshot shows the popup happening. Note that I'm NOT in Agent Mode.

Image

To reproduce

Go into any normal git dir and type @. E.g.:

  1. git clone https://github.com/afnanenayet/diffsitter.git
  2. cd diffsitter/
  3. Type @ with nothing before it

The criteria are:

  1. Be in a directory with a .git/ dir. (git worktrees and non-colocated jj repos don't trigger this.)
  2. Type @ with no alphanumeric chars before it. @, "@, and '@ will trigger it. [A-Za-z0-9]@ do not.

Expected behavior

Since I haven't invoked agent mode, I expect @ to be treated like any other character.

Screenshots, videos, and logs

Image

Operating system (OS)

macOS

Operating system and version

macOS 15.5

Shell Version

zsh 5.9 (x86_64-apple-darwin23.6.0)

Current Warp version

v0.2025.06.18.08.11.stable_02

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

2025-06-07

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

heysweet commented 3 weeks ago

Hello! Just wanted to inform you this is currently working as intended -- it's a new ergonomic feature to allow you do something like

cat @settings.rs| and pick from a list of files. Right now, there's no way for you to disable this feature but I'm bringing up your bug report internally, and we may consider adding some settings to disable this when you're in terminal input.

heysweet commented 3 weeks ago

You can easily hit ESC to close the menu for the time being, sorry for the inconvenience.

KingMob commented 3 weeks ago

I suspected as much. Personally, I'd really rather it only do that in agent mode.


Hrmmm, what about this instead? Pop up the file list whenever someone types a path prefix, like /, ./, ~/, or my-local-dir/. You could still get 95% of the benefit, and better discoverability (since it would piggyback off existing typing behavior).

And then we can still use @ in agent mode for adding context.

enlightenedpie commented 2 weeks ago

Can we please make this an opt-in feature, or make an option to disable it? This seriously inhibits some development, for instance when trying to run commands like npm install @somelibrary/somelib, the @-based file selector doesn't apply here. In fact it very much gets in the way!

I have to agree with @KingMob, @ isn't the best symbol to use here... It would be better to using *nix path syntax to trigger a file search. Just being honest here guys, this is a pretty big misstep for UX/DX.