Skip to content

fix(ui): show "Running commands" instead of "Thinking" while bash tool executes#22111

Open
leoleoasd wants to merge 1 commit intoanomalyco:devfrom
leoleoasd:fix/thinking-status-for-shell-commands
Open

fix(ui): show "Running commands" instead of "Thinking" while bash tool executes#22111
leoleoasd wants to merge 1 commit intoanomalyco:devfrom
leoleoasd:fix/thinking-status-for-shell-commands

Conversation

@leoleoasd
Copy link
Copy Markdown

Issue for this PR

Closes #22108

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The web UI shows "Thinking" while the session is busy, even when a bash tool is actively running and the model is just waiting for shell output. This happens because showThinking in session-turn.tsx returns true unconditionally when showReasoningSummaries is false (the default).

The fix tracks whether any bash tool part has running or pending status inside the existing assistantDerived memo. When a bash tool is active, the shimmer text switches from "Thinking" to "Running commands" using the existing i18n key ui.sessionTurn.status.runningCommands (already translated in all 17 locales).

How did you verify your code works?

manually tested. see below.

Screenshots / recordings

before:
image

after:
image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Web UI shows "Thinking" instead of "Running" while bash tool is executing

1 participant