goose icon indicating copy to clipboard operation
goose copied to clipboard

Line Wrapping is permanent in `goose-cli`

Open haznai opened this issue 10 months ago • 3 comments

Describe the bug goose cli manually wraps lines.

Thank you for your work, btw ♥️

To Reproduce Steps to reproduce the behavior:

  1. Run your prompt in a smaller window
  2. Wait for the goose response
  3. Expand your window
  4. See that goose response still maintains the previous, smaller width

Expected behavior Line's get expanded to the wider size.

Screenshots

Image

Please provide following information:

  • OS & Arch: [macOs 15]
  • Interface: [CLI]
  • Version: [v1.0.7]

Additional context It's important that goose doesn't do the wrapping of lines itself, because if you copy out code (a normal use case) from goose with manually wrapped lines, your code now has random newlines which you need to fix.

haznai avatar Feb 20 '25 09:02 haznai

thanks for letting us know! We're unlikely going to address this because goose outputs to stdout in a pretty simple way, and I don't see a straightforward way to re-render stdout on the terminal. Let me know if you think otherwise!

wendytang avatar Feb 24 '25 22:02 wendytang

Also you could start with using a bigger terminal window

wendytang avatar Feb 24 '25 22:02 wendytang

Thanks for the answer :)

I am not sure if the stdout printing is as expected, as there's an actual linebreak/newline when i copy out the code from the window, which breaks the code. this is the biggest gripe for me currently.

tmux split panes is the reason my terminal pane is smaller, i am running goose in one pane and git/whatever in the pane right next to it ☺️

haznai avatar Feb 25 '25 05:02 haznai

It seems to be caused by a configuration option when printing Markdown text. I opened a PR to fix this.

arielherself avatar Feb 28 '25 18:02 arielherself