claude-code - 💡(How to fix) Fix [BUG] & (background) shortcut sends text as regular message instead of spawning background task [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45193Fetched 2026-04-09 08:11:06
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1renamed ×1

Error Message

Error Messages/Logs

No error messages. The input is silently treated as a regular message.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The & prefix shortcut (documented as "& for background" in the help screen) does not work. Instead of spawning a background task, the text after & is sent as a regular message to the conversation.

For example, typing & test should launch a background agent with the prompt "test", but instead it arrives as plain text in the chat.

What Should Happen?

The & prefix should intercept the input and spawn a background task with the remaining text as the prompt.

Error Messages/Logs

No error messages. The input is silently treated as a regular message.

Steps to Reproduce

  1. Open Claude Code CLI
  2. Type & test and press Enter
  3. Observe that the message is sent as regular text instead of being processed as a background task
  4. The assistant receives "& test" as a plain user message

Claude Model

Opus

Is this a regression?

I don't know

Claude Code Version

2.1.96 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

The help screen (visible at the bottom of the CLI) correctly lists & for background as a shortcut, but the feature does not activate when used.

extent analysis

TL;DR

The & prefix shortcut for spawning background tasks in Claude Code may require a fix or update to correctly intercept and process the input.

Guidance

  • Verify that the & prefix is correctly documented and expected to work in the current version (2.1.96) of Claude Code.
  • Check if there are any known issues or limitations with the Opus Claude Model that might affect the & prefix functionality.
  • Test the & prefix with different inputs and prompts to see if the issue is specific to certain characters or lengths.
  • Consider reporting this issue to the developers or maintainers of Claude Code for further investigation and potential fixes.

Example

No specific code snippet is provided as the issue seems to be related to the functionality of the Claude Code CLI rather than a coding error.

Notes

The issue might be specific to the Opus Claude Model or the Windows/PowerShell environment, and further testing or investigation may be needed to determine the root cause.

Recommendation

Apply workaround: Since the issue is not clearly related to a specific version or configuration, it's recommended to report the issue and wait for a potential fix or update from the developers.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING