Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .console/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
_Chronological continuity log. Decisions, stop points, what changed and why._
_Not a task tracker — that's backlog.md. Keep entries concise and dated._

- Banner padding equalized and trimmed (2026-05-08, on fix/banner-equal-padding): Equalized lp and g to the same value, then trimmed 15% — both now `max(4, (w-1)*17//80)` (= (w-1)//4 × 0.85). At 120 cols: 25 spaces each side.

- Banner padding unified at half original (2026-05-08, on fix/banner-half-padding): Both single and multi-banner now use lp=(w-1)//4 and g=max(6,(w-1)//6) — half the original multi-banner values. Removes the single/multi branch entirely.

- Banner single-loop padding at half size (2026-05-08, on fix/banner-single-padding): Single-banner re-stream gets lp=(w-1)//4 and g=max(6,(w-1)//6) — half the original values — so there's a visible breath between loops. Multi-banner keeps lp="" and g=" " (4 spaces); the crossfade coloring is the boundary signal there.
Expand Down
10 changes: 4 additions & 6 deletions src/operator_console/watcher_status_pane.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,8 @@ def _banner_unit_len(message: str, banner_count: int, banner_index: int, w: int)
"""
counter = f" [{banner_index + 1}/{banner_count}]" if banner_count > 1 else ""
payload = f" {message}{counter} "
lp = " " * ((w - 1) // 4)
g = " " * max(6, (w - 1) // 6)
return len(lp) + len(payload) + len(g)
pad = max(4, (w - 1) * 17 // 80)
return pad + len(payload) + pad


def _wrap_hints(chunks: tuple[str, ...], width: int) -> list[str]:
Expand Down Expand Up @@ -1280,9 +1279,8 @@ def _build_unit(b_severity: str, b_message: str, b_idx: int) -> tuple[str, str]:
"""Return (full_unit_text, severity) for one banner condition."""
ctr = f" [{b_idx + 1}/{banner_count}]" if banner_count > 1 else ""
payload = f" {b_message}{ctr} "
lp = " " * ((w - 1) // 4)
g = " " * max(6, (w - 1) // 6)
return lp + payload + g, b_severity
pad = " " * max(4, (w - 1) * 17 // 80)
return pad + payload + pad, b_severity

severity, message = current_banner
cur_unit, cur_sev = _build_unit(severity, message, banner_index)
Expand Down
Loading