Skip to content

feat(tui): show a running child's full task in the expanded widget - #3196

Merged
nicobailon merged 4 commits into
mainfrom
fix/bl1105b-3187
Nov 5, 2026
Merged

nicobailon merged 4 commits into
mainfrom
fix/bl1105b-3187

Conversation

@nicobailon

Copy link
Copy Markdown
Owner

While a background child runs, the expanded widget showed its task only as a one-line preview cut at 96 characters (compactTaskText), the same as the collapsed row. A structured brief became an unreadable one-liner, and there was no expanded state that showed what the child had been asked to do.

When exactly one child is running in the widget, the expanded row now shows the task as written: line breaks kept, wrapped to the terminal width, at most 8 lines plus a "…" line. The task is cut to what 8 lines can show before sanitizing and wrapping, so a very long task costs the same per frame as a short one; no I/O was added to the render path.

With two or more running children, each row keeps today's one-line preview. Review found that the longer block pushed the second running child's whole row past the widget's line budget (16 lines on a 30-row terminal), hiding running work. The collapsed widget is unchanged in both cases.

Scope reduced from #3187 on purpose:

  • expanded mode already lists the last 3 tool calls and recent output lines for a running child, so no new tool history or output tail;
  • no new config knobs;
  • the expanded foreground result views already print the whole task, so only the background widget changed.

Test: test/unit/render-helpers.test.ts covers one running child (full task, width-bounded, joins back to the original at 80 columns, huge task capped), two running children (both rows visible, same line count as short tasks), and unchanged collapsed output. Full unit suite passes locally.

Thanks to @marshamonkey25-hue for the report.

Closes #3187

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] No blocking code defect was found, but exact-head CI must be verified before calling this merge-ready.

Summary

The expanded background widget shows a longer task block when exactly one child is running.

  • The expanded widget shows a running child’s full task when it is the only one running.

Reviews (2) · Last reviewed commit: "Merge main into fix/bl1105b-3187" · Reviewed by Greptile

Comment thread src/tui/render.ts Resolved
Comment thread src/tui/render.ts Resolved
Comment thread src/tui/render.ts Resolved
@nicobailon
nicobailon merged commit 779f6ee into main Nov 5, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running children: show the full task, recent tool calls, and child output tail in expanded mode

1 participant