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: 1 addition & 1 deletion packages/cli/src/agent-view/supervisor-process.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5205,7 +5205,7 @@ async function waitFor(
predicate: () => boolean,
subscribe?: (notify: () => void) => void,
): Promise<void> {
for (let attempt = 0; attempt < 50; attempt++) {
for (let attempt = 0; attempt < 500; attempt++) {
if (predicate()) return;
await new Promise<void>((resolve) => {
subscribe?.(resolve);
Expand Down
4 changes: 4 additions & 0 deletions packages/web-shell/client/components/MessageList.dom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,7 @@ describe('MessageList — turn collapse (DOM)', () => {
await Promise.resolve();
});
await nextFrame();
await nextFrame();
expect(has(c, 't1')).toBe(true);

// Page 2 anchors on the now-visible t1 row while the fetch is in flight.
Expand All @@ -1445,6 +1446,7 @@ describe('MessageList — turn collapse (DOM)', () => {
await Promise.resolve();
});
await nextFrame();
await nextFrame();
expect(isCollapsed(c, 't1')).toBe(true);

// ...and pagination is not stuck: a third load still fires.
Expand All @@ -1464,6 +1466,8 @@ describe('MessageList — turn collapse (DOM)', () => {
resolveLoad();
await Promise.resolve();
});
await nextFrame();
await nextFrame();
// ...page 4 then completes that turn's head while its tail is already
// on screen, so it stays expanded.
// Re-top the container: re-renders snap it to the bottom while
Expand Down
Loading