feat: tool output preview
Closes https://github.com/sst/opencode/issues/5358
- respects scroll_speed config inside dialog
- doesn't prevent default ctrl+click behavior when clicking tool (opening file)
may wanna merge dev into ur branch, i fixed a test
done
There are some changes shipping soon that may cause conflicts (most likely won't) but once they ship in I will give this more through review.
I'm wondering, should they be dialogs? Or should they be inlined like an expanded state? That u could open and close ofc
Also can u attach screenshots / videos for changes u make?
https://github.com/user-attachments/assets/9e2e241b-09e5-45b6-b3b9-8df212f41e1c
I'm wondering, should they be dialogs? Or should they be inlined like an expanded state
Dialog is straightforward, requires minimal changes, doesn't shift layout or push contents down and outputs are mostly wall of text. Expand/collapse accordion needs more thought from UX perspective when tool calls are grouped.