Repository navigation
Preserve command titles for non-exploratory first shell segments - #5849
Merged
Merged
Conversation
2 tasks done
A bare cd segment now passes through intent parsing, so the next segment decides the title: `cd dir && rg foo` stays "Searched for foo", while `cd dir && node build.mjs | grep warning` stays "Ran ...". The server shell-summaries test still used the `until ... | grep` poll fixture that this branch intentionally stops summarizing; switch it to a search-first command. Co-Authored-By: Claude Opus 5.5 <[email protected]>
SawyerHood
force-pushed
the
slopcop/issue-5847
branch
from
October 20, 2026 17:42
6b89a0d to
99f81a3
Compare
This was referenced Oct 21, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Shell intent parsing skipped unrecognized initial commands and promoted a later grep segment to the search title for the whole command. Both timeline titles and CLI headings therefore hid the identity of a non-search-first command. Reproduced on trusted main in two clean checkouts: root-cause report.
What changed
cdsegment passes through, so the next segment decides:cd dir && rg foostays "Searched for foo", andcd dir && node build.mjs | grep warningstays "Ran …".cd-prefixed search and build commands, and a search-first control. Correct the fixtures that relied on promoting later searches, including the server shell-summaries test.How you verified
cd … && node … | grepcase fail, and the search-first andcd … && grepcases pass. Beforecdpassed through, thecd … && grepcase failed against this branch's first commit.pnpm exec turbo run test typecheck --filter=@bb/thread-view: 504 tests across 31 files pass; typecheck passes.pnpm exec turbo run test --filter=@bb/server -- test/public/public-thread-shell-command-summaries.test.ts: 2/2 pass;@bb/servertypecheck passes.cd dir && <search/read>command changes classification. The 11,128 commands that change all start with a non-exploratory command (for examplegit,gh, orcd … && cp …), so they now show as "Ran …".ls x && rm -rf x,grep -l … | xargs rm) still show the explore summary, as on main; this PR does not change that.Fixes #5847