[BUG] [Privacy Concern] Command suggestions showing URLs not in shell history from unknown source

Resolved 💬 3 comments Opened Jan 28, 2026 by coldwateryu Closed Mar 1, 2026

Preflight Checklist

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

What's Wrong?

Description

Claude Code's "next command" suggestion is showing a Reddit URL that doesn't exist in my shell history.
The suggestion appears as:

End reddit.com/r/selfhosted/comments/1i8qdgz/selfhosted_alternatives_to_youtube_music/

Investigation

I verified the URL is not in any shell history:

$ history | grep reddit
(empty - only shows the grep command itself)

$ grep reddit ~/.bash_history
(empty)

Environment

  • Shell: /usr/bin/bash
  • Terminal: ghostty
  • OS: Linux (Arch)
  • Claude Code version: 2.1.15
  • fzf is installed but no other history tools (no atuin, mcfly, etc.)

Observations

  1. The suggestion has a strange "End" prefix - this isn't a valid command
  2. The URL does exist in Claude's session transcript (~/.claude/projects/.../[session].jsonl) but only

because I asked Claude about this issue during the session

  1. The suggestion appeared before the URL was ever mentioned in the conversation

Screenshot below.

<img width="849" height="115" alt="Image" src="https://github.com/user-attachments/assets/7bc4d41e-c185-429a-ae55-a87580a261fa" />

What Should Happen?

Command suggestions should only come from actual shell history or valid commands.

Error Messages/Logs

Steps to Reproduce

I don't know how to reproduce, this is a command suggestion.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.15

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗