Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
This repository was archived by the owner on Nov 7, 2026. It is now read-only.

run: turn summary truncates from the right, hiding duration and the served model at narrow widths #13

Closed

Description

@brentyates-swx

Raised by codex during review of #12; deferred there as a layout change rather than folded into that PR.

turnSummaryWriter renders the whole summary as a single <text wrapMode="none" truncate> line:

packages/opencode/src/cli/cmd/run/scrollback.writer.tsx:336

▣ {agent} · {model} · {duration}

Truncation is right-edge, so at narrow terminal widths the tail is silently cut. #12 makes the line longer by appending the model(s) that actually served the turn — Firerouter glm (glm-5p3-flash → glm-5p3) — which makes this reachable at common widths, especially with a multi-step route or a long raw served id.

Current priority order is defensible but accidental: duration is cut first, then the served parenthetical, then the configured model. The most valuable new information is cut last, which is the right order — but nothing enforces it, and nothing tests it.

Suggested fix

Reserve width for the duration, truncate the configured model label independently of the served parenthetical, and add rendering assertions at 60 and 80 columns.

Why not in #12

It needs width measurement and a layout change to a shared scrollback component, beyond the display change that PR makes. Filed so it is tracked rather than lost in a PR comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:P3Low impact or operationally gated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions