waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Feature]: Piping stdin to AI should still let you provide a prompt separately

Open alexboutros opened this issue 8 months ago • 1 comments

Current Behavior

If I do something like "ls | wsh ai - "how many files are here"", it only pipes the output of ls to the AI block, and does not include the question I asked. This seemed to work on on macos.

Expected Behavior

ls | wsh ai - "how many files are here" should pipe the ls output to the AI block and the AI block should read from stdin with -.

Steps To Reproduce

  1. Run waveterm
  2. run ls | wsh ai - "how many files are here"
  3. Observe that AI block doesn't read the stdin text

Wave Version

v0.11.0

Platform

Windows

OS Version/Distribution

Windows 11

Architecture

x64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

alexboutros avatar Feb 06 '25 01:02 alexboutros