GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): stop repeating Bash commands in tool rows by ishaanko · Pull Request #7713 · pingdotgg/t3code

Conversation

@ishaanko

@ishaanko ishaanko commented Aug 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What Changed

  • extractToolCommand now reads data.input.command, which is where Claude's completed tool activity carries the command.
  • The detail redundancy check in extractToolDetail now treats a detail that repeats the command with a ToolName: prefix, or with the server's ... truncation, as redundant and drops it.
  • Added regression tests built from a real Claude Bash lifecycle (tool.updated + tool.completed).

Why

Claude puts the command into detail as Bash: <command>. The web compared detail to the command with exact equality, so every expanded Bash row showed the command and then Bash: <command> again. The completed activity also only carries the command in data.input.command, which the web never read, so it fell back to the prefixed (and for long commands, truncated) detail as the command.

Fixing this in the web presentation layer also cleans up already-persisted threads. Mobile has the same symptom with a separate derivation path (apps/mobile/src/lib/threadActivity.ts) and is left for a follow-up to keep this PR small.

Closes #7711

UI Changes

Before:

before

After:

after

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Changes made by Claude Fable 5 running in Claude Code.


Note

Low Risk
Presentation-only change to work-log derivation; no auth, persistence, or command-execution behavior is affected.

Overview
Stops Claude Bash work-log rows from showing the command twice (command plus Bash: <command>).

extractToolCommand now reads data.input.command from completed Claude activities, so the real command is used instead of the prefixed/truncated detail. Redundant details that only repeat the command (including ToolName: prefixes and server ... truncation) are dropped. Regression tests cover a Claude tool.updated + tool.completed lifecycle.

Reviewed by Cursor Bugbot for commit 54baa11. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix repeated Bash commands in tool rows by improving extractToolDetail

  • extractToolCommand now also reads data.input.command from Claude-style completed payloads so the command is found in more cases.
  • New detailRepeatsCommand helper detects when a detail string only repeats the command, including tool-name prefixes and truncated details ending with ... or ….
  • extractToolDetail uses this helper to drop details that merely restate the command, instead of only checking for exact equality.
  • Risk: extractToolDetail now returns null in more cases in session-logic.ts; callers that relied on detail text being present for command tools will see fewer populated rows.

Macroscope summarized 54baa11.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ishaanko
fix(web): stop repeating Bash commands in tool rows
54baa11
Claude puts the command into `detail` as `Bash: <command>` and the server
truncates long details with `...`. The web dedup compared `detail` to the
command with exact equality, so the row showed the command and then
`Bash: <command>` again. The completed activity also only carried the command
in `data.input.command`, which the web never read, so it fell back to the
prefixed and truncated detail as the command.

Read `data.input.command` for the command and treat a detail that repeats the
command with a tool-name prefix or a truncated `...` suffix as redundant.

Closes pingdotgg#7711
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 20, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4fcaf0e9-03e7-4dc9-a1a1-2054d9e1a1c5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 20, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 20, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 54baa11

Macroscope's review found this PR approvable — Self-contained bug fix preventing duplicate command text in tool rows. Adds a well-tested pure helper function; changes isolated to UI presentation with no runtime behavior impact.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg

t3dotgg commented Aug 28, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

We are keeping OPEN #7989 as the review path for repeated OpenCode Bash rows. The focused command-output test here remains useful reference.

If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Aug 28, 2026
@ishaanko
ishaanko deleted the fix/claude-bash-detail-dedup branch October 1, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Bash command shown twice in tool-call activity — dedup check doesn't strip the "Bash: " prefix baked into detail

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ishaanko @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.