Uh oh!
There was an error while loading. Please reload this page.
fix(tui): stream running bash output - #40859
Conversation
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: Related PR:
This PR appears related as it addresses showing shell output while a command runs. However, since this is from the The other results like #40005 (background long-running commands) and #37653 (batch shell output updates) are related to shell output handling but don't appear to be exact duplicates of the current fix. No exact duplicate PRs found for PR #40859. |
Issue for this PR
Fixes#34966
Type of change
What does this PR do?
Streams incremental bash
metadata.outputupdates into the standalone TUI scrollback while the tool is still running. The reducer now appends only the newly observed output slice, so long-running commands can surface available stdout/stderr progress before the final completed tool update arrives.This keeps the existing first-class shell-event path unchanged and does not change subprocess PTY/PIPE semantics.
How did you verify your code works?
bun test test/cli/run/session-data.test.ts --test-name-pattern "streams running bash metadata output into scrollback" --timeout 30000bun test test/cli/run/session-data.test.ts --test-name-pattern "direct shell|legacy bash|shell events|running bash metadata" --timeout 45000bun test test/cli/run/session-data.test.ts --timeout 90000bun test test/cli/run/scrollback.surface.test.ts --timeout 90000bun run typecheckfrompackages/opencodebun run lint packages/opencode/src/cli/cmd/run/session-data.ts packages/opencode/test/cli/run/session-data.test.tsScreenshots / recordings
N/A
Checklist