fix(app): bound the background-task output pane and row labels

Review 139 found the selected task's output page unbounded, overflowing a
phone-height conversation. The bar now keeps half the viewport and scrolls
its own body, the output pane is capped at twelve scaled lines, row labels
elide instead of overflowing, and a reply without a page reads as
unavailable rather than empty.
This commit is contained in:
2026-10-22 17:53:48 +01:00
parent 2cb4a0c555
commit a26bfe2b0c
5 changed files with 380 additions and 77 deletions
@@ -116,11 +116,16 @@ void main() {
expect(chatShellOutputLimit, 64 * 1024);
});
test('an unknown reply parses as no page, never invented output', () {
test('a reply without the page is unavailable, never invented output', () {
final page = ChatShellOutputPage.fromReply(const {});
expect(page.output, '');
expect(page.shell, isNull);
expect(page.unavailable, isTrue);
expect(
ChatShellOutputSnapshot(page: page).state,
ChatShellOutputState.unavailable,
);
expect(
const ChatShellOutputSnapshot(page: ChatShellOutputPage()).state,
ChatShellOutputState.empty,