opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Stream bash tool call results

Open adunne09 opened this issue 5 months ago • 3 comments

primary intention is to decrease perceived latency during long running tools

  • add support to stream tool call results
  • support is only implemented in the bash tool

not sure how to handle the sdk changes since I believe that is autogenerated in CI, but I manually changed it here

Demo

https://github.com/user-attachments/assets/01d5624c-942e-4dad-b95c-02f4e139fbac

adunne09 avatar Aug 05 '25 21:08 adunne09

this is a good feature although i think there's a .metadata function in the object passed to the second arg to progressively update metadata

you can see how task tool uses it

thdxr avatar Aug 05 '25 22:08 thdxr

this is a good feature although i think there's a .metadata function in the object passed to the second arg to progressively update metadata

you can see how task tool uses it

haha thanks- updated PR

adunne09 avatar Aug 06 '25 03:08 adunne09

one challenge with this is that some bash tools may have an excessively long output, longer than the tool can support: see #1829

taxilian avatar Aug 12 '25 00:08 taxilian