[Feature Request] Add runtime toggle for IDE file auto-attach and move attachment indicator to status bar

Status Open
Reported on v2.1.260
Maintainer reply None cached
Activity 0 comments · opened Sep 14, 2026

Bug Description
Two requests about IDE file context (IntelliJ via /ide): 1. A slash command to toggle AUTO-attaching the IDE's open/selected file to the prompt context, switchable at any time WITHIN a running session — e.g. /ide attach on|off or a Shift+Tab-style toggle. Today the active editor file is attached implicitly whenever I type, and the only ways to stop it are changing what's open in the IDE or disconnecting /ide entirely. I want to flip it on for a few prompts, off for the next few, without a restart or a new session. A persistent default in settings.json would be fine as the starting state, but the runtime toggle is the point. 2. When a file IS attached (auto or explicit), show the indicator in the footer/status area instead of as a chip inside the input box — or make the placement configurable. I want to stay AWARE that context is attached, so hiding it is not the goal; the in-input chip (since 2.1.260) competes with the prompt text and shifts it right, and the 2.1.261 X removes the attachment along with the indicator, so there is currently no way to keep context attached while keeping the input line clean. Setup: IntelliJ IDEA via /ide, tui "fullscreen", custom statusLine, macOS/iTerm2, 2.1.26x.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.270
  • Feedback ID: 2d6a120d-e997-4dfe-ab5e-64522321c5c6

Errors

[]

View original on GitHub ↗