Skip to content

fix: web streaming bash output#22121

Open
leoleoasd wants to merge 2 commits intoanomalyco:devfrom
leoleoasd:fix/web-streaming-bash-output
Open

fix: web streaming bash output#22121
leoleoasd wants to merge 2 commits intoanomalyco:devfrom
leoleoasd:fix/web-streaming-bash-output

Conversation

@leoleoasd
Copy link
Copy Markdown

Issue for this PR

Closes #22116

Type of change

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

What does this PR do?

The web UI hides bash tool output during execution even though the streaming data pipeline already delivers it to the client. The TUI shows output in real-time; this PR makes the web UI match.

Three changes:

basic-tool.tsx: Changed the handleOpenChange and Collapsible.Arrow gates from pending() (which blocks both pending AND running) to only block during pending (LLM still streaming tool call args). During running, users can toggle the collapsible.

message-part.tsx:

  • Added forceOpen={props.status === "running"} to the bash BasicTool so the collapsible auto-opens when a command starts executing, showing streaming output immediately.
  • Changed the description subtitle gate from !pending() to props.status !== "pending" so it shows during execution.

How did you verify your code works?

Tested locally with !for i in 1 2 3 4 5; do echo $i; sleep 1; done -- output streams in real-time with the collapsible auto-opened during execution.

Checklist

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

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title Fix/web streaming bash output doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@leoleoasd leoleoasd changed the title Fix/web streaming bash output fix: web streaming bash output Apr 12, 2026
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 hides bash output during execution despite streaming data being available

1 participant