fix(coder-lite): use wrap_text for error rendering

d143a5b1e186 · AtlantisPleb · · parent 08abb47bd94b

fix(coder-lite): use wrap_text for error rendering

The error branch was still calling the removed wrap_input helper.
Switch it to wrap_text so long URLs and error text are wrapped and
visible in the frame.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified crates/coder-lite/src/tui.rs

Diff

1 file changed, +1 -1

crates/coder-lite/src/tui.rs modified +1 -1

@@ -384,7 +384,7 @@ fn render_entry(

384 384
    match entry.role {
385 385
        Role::Assistant if !entry.text.is_empty() && entry.text.starts_with("[error:") => {
386 386
            let mut lines = Vec::new();
387
            for chunk in wrap_input(&entry.text, width) {
387
            for chunk in wrap_text(&entry.text, width) {
388 388
                lines.push(Line::from(vec![Span::styled(
389 389
                    chunk,
390 390
                    text_style.add_modifier(Modifier::BOLD),

This page updates live while a promote is in flight · changelog