Skip to content

Timeline labels a piped Bash command as "Searched for <grep pattern>", hiding the command that actually ran #5847

Closed

Description

@nikolai-vysotskyi

What happened

Claude Code ran one Bash tool call:

bash -n ~/.local/bin/disk-cleanup-20261019.sh && bash -n ~/.local/bin/disk-janitor.sh \
  && ~/.local/bin/disk-cleanup-20261019.sh --run 2>&1 \
  | grep -vE '\] (DROP pg|DEL) .*(K|kB|MB|B)  ' | tail -60

The timeline showed it only as:

🔍 Searched for ] (DROP pg|DEL) .*(K|kB|MB|B)

and grouped it under "Explored 1 search". The cleanup script, which deleted about 1.3 TB, did not appear anywhere in the visible label. bb thread log shows the same ── Explored 1 search ── row.

Expected

A compound command (&&, ;, |) whose main command isn't a search should be labeled "Ran command" with its full text, or at least with its first command. The grep at the end of the pipe only filters output.

Why it matters

The user approved running the script and could not see in the UI that the agent had run it. A destructive command shows up as a harmless search.

Related

In completed turns, flat mode still folds steps into rows like "Ran 2 commands, explored 1 search". Please add an option to keep those groups expanded.

Environment: bb desktop (macOS), provider Claude Code, completed-turns = flat.

Activity

  1. nikolai-vysotskyi commented on Oct 20, 2026

    @nikolai-vysotskyi
    Author

    To be clear: no data was lost here. I wrote this cleanup script myself, to remove junk, and asked the agent to run it. But the script ran and the UI showed it only as a search. If the command had been something I didn't expect, I couldn't have seen it in the timeline. That's why this matters.

  2. added theissue type on Oct 20, 2026
  3. added
    threads
    provider-claude-code
    confirmed-repro
    on Oct 20, 2026
  4. bb-slop-cop commented on Oct 20, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Verification uses inert synthetic command events, not the reported script. Exact aggregate-row wording and macOS desktop visuals were not verified; the separate expansion preference is outside this fix.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-claude-codethreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions