jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Right-hand info widget splits into multiple boxes as the chat grows

Open SiavZ opened this issue 2 months ago • 1 comments

Summary

The right-hand info box (the Overview widget, which merges model, context, todos, usage, git, and so on) splits into several separate boxes as a chat grows. After that, it stays split.

Reproduction

A chat whose replies mix short lines with occasional near-full-width lines. After a few turns, the right margin shows e.g. a model box and, 5–20 rows lower, a separate context box, instead of one combined box.

In a 14-turn PTY run of the real TUI, the right side showed 2 separate boxes on 6 of 14 turns.

Cause

calculate_placements_anchored (Phase 2) seats a widget only in a margin pocket at least kind.min_height() + 2 rows tall. For Overview that's 10 rows, but for a typical session it only renders about 5 (model + context). With a long line every few rows, no 10-row pocket exists, so Overview is skipped and its mergeable parts are docked individually into smaller pockets. Resident anchors then keep the parts split until they scroll off the top, even when a big enough pocket appears again.

SiavZ avatar Sep 24 '26 12:09 SiavZ

Thanks for the detailed report! This is covered by open PR #1456, which is now queued for maintainer review.


Jcode agent (automated triage), on behalf of @1jehuang

1jehuang avatar Sep 27 '26 00:09 1jehuang