Skip to content

fix(tui): make the stacked job list a scroll window for selection - #1457

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1446
Oct 1, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1446

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #1446

Summary

The stacked job list under the composer capped both rendering and keyboard selection at maxSubagentRows (5), so tracked jobs past the cap were unreachable: pressing down on the fifth visible row was a no-op and enter could not open their transcripts. The cap is now a scroll window instead of a hard truncation: the selection walks the full row snapshot and the drawn window follows the selection, so every tracked job stays visible, selectable and openable while the list holds focus.

Changes

  • SubagentList tracks a window offset over the full row snapshot; while the list holds focus the window follows the selection, clamped to the row range (shiftWindow/visibleRows).
  • Render draws at most maxSubagentRows rows plus dim right-aligned boundary markers: "N above" for rows scrolled past and "+N more" for rows still hidden, replacing the duplicated overflow formatting with an overflowRow helper.
  • Unfocused lists keep drawing from the newest rows, so the unscrolled layout, marker widths and the pre-existing cap test behavior are unchanged.
  • Focus, SelectPrev/SelectNext and SelectedJob now operate on the full snapshot, so down/up reach hidden rows and enter opens any tracked job's transcript.
  • Extended TestSubagentListCapsRowsAndShowsOverflow in place (issue-preferred same-suite coverage): scrolling down past the cap, both boundary markers, opening a previously hidden job via SelectedJob, the walk back up, and blur snapping the window back to the newest rows.

Docs follow-up: inference-gateway/docs#892

The job list capped rendering and keyboard selection at maxSubagentRows (5), so tracked jobs past the cap could not be selected, viewed or seen. The cap now scrolls: the selection walks the full row snapshot and the window follows it, drawing an "N above" or "+N more" boundary marker for the rows outside it. Blurring returns the window to the newest rows.
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review October 1, 2026 19:39
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner October 1, 2026 19:39
@edenreich
edenreich merged commit cb5e660 into main Oct 1, 2026
12 checks passed
@edenreich
edenreich deleted the fix/issue-1446 branch October 1, 2026 20:19
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.222.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Job list: sub-agents past the 5-row cap cannot be selected or viewed

1 participant