fix: lower sidebar threshold to 60 cols, word-wrap agent messages

- Sidebar threshold lowered from 120 to 60 so it works on 83-col
  terminals
- Agent response text is now word-wrapped through cl-tty.box:word-wrap
  after markdown rendering, preventing text from bleeding past the
  terminal edge
This commit is contained in:
2026-05-14 15:31:00 -04:00
parent ad5b9669a6
commit 84ef4c3443
2 changed files with 6 additions and 5 deletions

View File

@@ -1033,7 +1033,7 @@ Event handlers + daemon I/O + main loop.
(cl-tty.backend:draw-text be 0 (- h 4) (make-string w :initial-element #\─)
(theme-color :separator) nil)
(view-input be w h)
(when (and (st :sidebar-visible) (>= w 120))
(when (and (st :sidebar-visible) (>= w 60))
(view-sidebar be w h))
(setf (st :dirty) (list nil nil nil)))
(let ((ds (st :dialog-stack)))