gptscript-ai / clio

Your friendly and safe CLI Copilot
Apache License 2.0
198 stars 22 forks source link

Delay in printing tool calls output #31

Open sangee2004 opened 1 month ago

sangee2004 commented 1 month ago

clio version - v0.1.4

Steps to reproduce the problem:

  1. Launch clio
  2. Execute the following script
    for i in {1..15}
    do
    echo "output: $i"
    sleep 60
    done
    ls
  3. Notice that after the exec call is mode there i no output for the first 1 minute after which we would see the following 2 lines
    ┌───────────┐
    │ output: 1 │
    │ output: 2 │

Expected Behavior: Should be able to see the output from the tool call immediately.

sangee2004 commented 1 month ago

This issue is not seen when testing with gptscript version - v0.0.0-dev-a7509b0d-dirty

Will wait for the fix to be made available in clio before closing this issue.