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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user