← reports

#7694 · Repeated timeline normalization and unstable cached row projections

BugPriority: LowEffort: Mediumthreads · perf GitHub issue2026-11-17 · base 1320c88e8abdd3f145bc9a5c305eace269fb2f28

Verdict: REPRODUCED · Root-cause confidence: high

1. TL;DR

Changing only the current assistant response creates new view objects for an earlier completed turn and a closed delegation, even when their input objects are identical and the same cache is reused. Their contents remain correct; this is unnecessary computation rather than lost messages. A separate probe confirms that a normalized turn's child array is iterated twice again on a subsequent merge of the same snapshot. The UI comparator and signature cache make these identities consequential, but this investigation does not measure visible lag, frame time, or CPU usage in the app.

2. Claims vs findings

ClaimFindingEvidence
Unchanged completed turn projections are replaced when a sibling changes.VerifiedDeep equality passes; object identity fails in both clean runs.
Unchanged closed delegation projections are replaced.VerifiedThe second identity case fails in both runs.
Existing rows undergo recursive merging again.VerifiedTwo child-array iterator accesses on the second unchanged merge; first-run normalization and returned row identity both pass.
Removing recursive joining entirely would be safe.Refuted as a fix strategyThe passing safety test shows that self-joining removes duplicate descendants.
This produces measurable application-level slowdown.UnverifiedNo app profiler or browser session was used.

3. Environment

4. Minimal reproduction

  1. Clone the public target repository into a fresh directory and select the trusted commit:
git clone https://github.com/get-bb/bb.git bb-7694
cd bb-7694
git checkout --detach 1320c88e8abdd3f145bc9a5c305eace269fb2f28
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build --filter=@bb/thread-view --filter=@bb/client-core

Save this complete, newly authored test as packages/thread-view/test/issue-7694.test.ts. It imports the actual repository implementations and uses synthetic data only. The iterator probe is instrumentation of the real children array, not a mocked merge implementation.

import { describe, expect, it } from "vitest";
import type {
  ThreadTimelineResponse,
  TimelineConversationRow,
  TimelineDelegationWorkRow,
  TimelineRowBase,
  TimelineTurnRow,
} from "@bb/server-contract";
import {
  buildTimelineViewRows,
  createTimelineViewRowsCache,
} from "../src/timeline-view.js";
import {
  mergeLoadedTimelineWithLatest,
  prependOlderTimelineRows,
} from "../../client-core/src/timeline/timeline-merge.js";

function metadata(id: string, sequence: number): TimelineRowBase {
  return {
    id,
    threadId: "repro-thread",
    turnId: "repro-turn",
    sourceSeqStart: sequence,
    sourceSeqEnd: sequence,
    startedAt: sequence,
    createdAt: sequence,
  };
}

function message(text: string): TimelineConversationRow {
  return {
    ...metadata("response", 3),
    kind: "conversation",
    role: "assistant",
    messageSeq: 3,
    text,
    attachments: null,
    turnRequest: null,
  };
}

const completedTurn: TimelineTurnRow = {
  ...metadata("earlier-turn", 1),
  kind: "turn",
  turnId: "earlier-turn",
  status: "completed",
  summaryCount: 1,
  completedAt: 2,
  children: [],
};

const completedDelegation: TimelineDelegationWorkRow = {
  ...metadata("earlier-delegation", 2),
  kind: "work",
  workKind: "delegation",
  status: "completed",
  callId: "delegation-call",
  toolName: "delegate",
  childRef: null,
  background: false,
  subagentType: "worker",
  description: "Finished task",
  output: "done",
  completedAt: 2,
  childRows: [],
};

describe("unchanged timeline row projections", () => {
  it.each([
    { name: "completed turn", row: completedTurn },
    { name: "closed delegation", row: completedDelegation },
  ])("reuses the $name view when only response text changes", ({ row }) => {
    const cache = createTimelineViewRowsCache();
    const first = buildTimelineViewRows([row, message("A")], { cache });
    const second = buildTimelineViewRows([row, message("AB")], { cache });

    expect(second[1]).toMatchObject({ kind: "conversation", text: "AB" });
    expect(second[0]).toEqual(first[0]);
    expect(second[0]).toBe(first[0]);
  });

  it("still removes duplicate descendants when a row is joined with itself", () => {
    const child = message("nested");
    const duplicated = { ...completedTurn, children: [child, child] };
    const result = prependOlderTimelineRows({
      olderRows: [duplicated],
      loadedRows: [duplicated],
    });

    expect(result).toEqual([{ ...duplicated, children: [child] }]);
  });

  it("does not rescan normalized children on a subsequent unchanged snapshot", () => {
    let iterations = 0;
    const children = new Proxy([message("nested")], {
      get(target, property, receiver) {
        if (property === Symbol.iterator) iterations += 1;
        return Reflect.get(target, property, receiver);
      },
    });
    const row = { ...completedTurn, children };
    const latestTimeline: ThreadTimelineResponse = {
      rows: [row],
      contextBoundarySeq: null,
      completedTurnDisplay: "collapse",
      activePromptMode: null,
      activeThinking: null,
      activeWorkflows: [],
      activeBackgroundCommands: [],
      pendingTodos: null,
      extensionStates: {},
      providerCommands: null,
      sessionOptions: null,
      modelFallback: null,
      maxSeq: 3,
      tag: "snapshot",
      timelinePage: {
        returnedSegmentCount: 1,
        olderCursor: null,
        historySnapshot: "snapshot",
        olderRowsSourceSeqEnd: null,
      },
    };
    const current = {
      rows: [row],
      surfaceKey: "repro-surface",
      historySnapshot: "snapshot",
      latestWindowEndSequence: 3,
      olderCursor: null,
    };
    const first = mergeLoadedTimelineWithLatest({
      current,
      latestTimeline,
      surfaceKey: current.surfaceKey,
    });
    expect(first.rows[0]).toBe(row);
    expect(iterations).toBeGreaterThan(0);
    iterations = 0;
    const second = mergeLoadedTimelineWithLatest({
      current: first,
      latestTimeline,
      surfaceKey: current.surfaceKey,
    });
    expect(second.rows[0]).toBe(row);
    expect(iterations).toBe(0);
  });
});

Run from the repository root:

pnpm exec turbo run test --filter=@bb/thread-view -- --run test/issue-7694.test.ts

Expected after a correct optimization: all four tests pass. Actual on trusted main, repeated in the second worktree:

Tests  3 failed | 1 passed (4)
completed turn: Object.is identity assertion fails; deep equality passes
closed delegation: Object.is identity assertion fails; deep equality passes
subsequent unchanged snapshot: expected 0 child-array iterations, received 2
recursive duplicate-child safety: passes

The first two cases create fresh outer arrays and a fresh assistant message, while keeping the earlier input row and cache objects unchanged. The third failing assertion follows a successful normalization run and confirms repeated work without claiming timing measurements.

5. Root cause

Repeated recursive joining

packages/client-core/src/timeline/timeline-merge.ts:443 looks up every incoming row by ID, then calls the child-joining routine whenever a loaded row exists. There is no special case for an identical, already-normalized input.

  const currentRowsById = new Map(current.rows.map((row) => [row.id, row]));
  const latestRows = latestTimeline.rows.map((row) => {
    const loaded = currentRowsById.get(row.id);
    return loaded === undefined
      ? row
      : prependOlderTimelineRows({
          olderRows: [loaded],
          loadedRows: [row],
        })[0]!;
  });

packages/client-core/src/timeline/timeline-merge.ts:180 recursively joins turn children and delegation child rows. packages/client-core/src/timeline/timeline-merge.ts:232 constructs deduplication arrays, sets, and a map before returning the original loaded object when children are unchanged. Returning the same row object therefore does not imply that recursive work was avoided. The separate safety case proves that the normalization must not simply be removed.

Cache granularity and closed-step wrappers

packages/thread-view/src/timeline-view.ts:926 uses an outer-array WeakMap and unconditionally spreads turn and delegation rows into new projections when that outer array is new.

function toTimelineViewRow(
  row: TimelineRow,
  cache: TimelineViewRowsCache,
): ThreadTimelineViewRow {
  switch (row.kind) {
    case "conversation":
    case "system":
      return row;
    case "work":
      return toTimelineViewWorkRow(row, cache);
    case "turn":
      return {
        ...row,
        children: row.children
          ? buildTimelineViewRows(row.children, {
              cache,
              closedScope: true,
            })
          : null,
      };
    default:

packages/thread-view/src/timeline-view.ts:983 misses its cache for a new outer array. packages/thread-view/src/timeline-view.ts:874 additionally creates a fresh singleton closed-step work wrapper. Caching only the delegation conversion would leave that wrapper allocation unresolved.

function closeOpenStepAtBoundary(
  work: TimelineWorkSummaryChild[],
): ThreadTimelineViewRow[] {
  if (work.length === 0) return [];
  if (!work.some((row) => row.kind === "work")) return work;
  if (work.length === 1) {
    return work.map((row) =>
      row.kind === "work" ? { ...row, inClosedStep: true } : row,
    );
  }
  return [buildStepSummaryRow(work)];
}

Downstream consequence, not a full UI benchmark

apps/app/src/components/thread/timeline/ThreadTimelineRows.tsx:416 uses row identity as a short circuit before comparing render signatures. packages/client-core/src/timeline/timelineRowSignatures.ts:330 caches signatures by view-object identity. New equivalent view objects miss that cache. This code path explains additional signature work when the comparator reaches this branch; the investigation does not assert that every mounted row necessarily reaches it on every render.

6. Proposed fix

Remember immutable row objects that have completed recursive normalization, and skip only subsequent self-joins of those same objects. Keep joining changed rows and retaining recursive duplicate removal. Reuse per-input-row view projections, including singleton closed-step work wrappers, while preserving grouping and open/closed-scope behavior. Add a scope-sensitive regression if changing cache keys or scope handling. No production fix was attempted here because an open pull request already links the issue.

7. Linked PR review

PR #7701 · static review only

GitHub timeline metadata and a repository-scoped open-PR lookup identify this open PR as linked to #7694. Its diff adds a WeakSet for previously normalized row identities, per-row view caching, and cached closed-step wrappers. These changes target both verified mechanisms rather than merely suppressing a UI rerender. No blocking defect was established in this bounded static inspection; this is not a safety approval. Its branch, production changes, and supplied tests were not checked out or executed. Consequently the PR's test-pass claims and full fix behavior remain unverified here. No duplicate PR was created.

8. Related issues

A narrow repository issue-title search for timeline identity returned no additional matches. This is not an exhaustive duplicate search. PR #7701 is the actionable existing fix candidate.

9. Verification

The same agent created a second clean detached worktree at 1320c88e8abdd3f145bc9a5c305eace269fb2f28, confirmed its working tree was clean, ran a new frozen install and the targeted build, copied only the newly authored reproduction file, and reran the exact Turbo command above. The failed test task was executed, not replayed from a successful cache result. Both runs show the same three intended assertion failures and passing duplicate-removal control. This is a repeated clean run, not independent-agent verification. No report correction was needed.

Existing owner tests were then run unchanged in the second checkout:

pnpm exec turbo run test --filter=@bb/thread-view -- --run test/timeline-view.test.ts
Tests  18 passed (18)

pnpm exec turbo run test --filter=@bb/client-core -- --run test/timeline-merge.test.ts
Tests  36 passed (36)

10. Appendix

Raw evidence remains local; sanitized relevant output and the full reproduction source are inline here, following the reports repository's no-artifact policy.

First clean-run output

   • turbo 2.11.10
   • Packages in scope: @bb/thread-view
   • Running test in 1 package
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing 2cbf82a4d1c41cd6
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 73f9bfdd153745fd
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker SCRATCH/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules SCRATCH/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/thread-view:test: cache miss, executing bc0375576c6eb539
@bb/thread-view:test:
@bb/thread-view:test: > @bb/thread-view@0.0.1 test SCRATCH/base/packages/thread-view
@bb/thread-view:test: > vitest run --config vitest.config.ts "--run" "test/issue-7694.test.ts"
@bb/thread-view:test:
@bb/thread-view:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/thread-view:test:   - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/thread-view:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/thread-view:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/thread-view:test:   - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/thread-view:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/thread-view:test:
@bb/thread-view:test:  RUN  v4.1.12 SCRATCH/base/packages/thread-view
@bb/thread-view:test:
@bb/thread-view:test:  ❯ |@bb/thread-view| test/issue-7694.test.ts (4 tests | 3 failed) 13ms
@bb/thread-view:test:      × reuses the 'completed turn' view when only response text changes 8ms
@bb/thread-view:test:      × reuses the 'closed delegation' view when only response text changes 2ms
@bb/thread-view:test:      ✓ still removes duplicate descendants when a row is joined with itself 1ms
@bb/thread-view:test:      × does not rescan normalized children on a subsequent unchanged snapshot 2ms
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > reuses the 'completed turn' view when only response text changes
@bb/thread-view:test: AssertionError: expected { id: 'earlier-turn', …(11) } to be { id: 'earlier-turn', …(11) } // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: If it should pass with deep equality, replace "toBe" with "toStrictEqual"
@bb/thread-view:test:
@bb/thread-view:test: Expected: { id: 'earlier-turn', …(11) }
@bb/thread-view:test: Received: serializes to the same string
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test: Compared values have no visual difference.
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:79:23
@bb/thread-view:test:      77|     expect(second[1]).toMatchObject({ kind: "conversation", text: "AB"…
@bb/thread-view:test:      78|     expect(second[0]).toEqual(first[0]);
@bb/thread-view:test:      79|     expect(second[0]).toBe(first[0]);
@bb/thread-view:test:        |                       ^
@bb/thread-view:test:      80|   });
@bb/thread-view:test:      81|
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > reuses the 'closed delegation' view when only response text changes
@bb/thread-view:test: AssertionError: expected { id: 'earlier-delegation', …(19) } to be { id: 'earlier-delegation', …(19) } // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: If it should pass with deep equality, replace "toBe" with "toStrictEqual"
@bb/thread-view:test:
@bb/thread-view:test: Expected: { id: 'earlier-delegation', …(19) }
@bb/thread-view:test: Received: serializes to the same string
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test: Compared values have no visual difference.
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:79:23
@bb/thread-view:test:      77|     expect(second[1]).toMatchObject({ kind: "conversation", text: "AB"…
@bb/thread-view:test:      78|     expect(second[0]).toEqual(first[0]);
@bb/thread-view:test:      79|     expect(second[0]).toBe(first[0]);
@bb/thread-view:test:        |                       ^
@bb/thread-view:test:      80|   });
@bb/thread-view:test:      81|
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > does not rescan normalized children on a subsequent unchanged snapshot
@bb/thread-view:test: AssertionError: expected 2 to be +0 // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: - Expected
@bb/thread-view:test: + Received
@bb/thread-view:test:
@bb/thread-view:test: - 0
@bb/thread-view:test: + 2
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:145:24
@bb/thread-view:test:     143|     });
@bb/thread-view:test:     144|     expect(second.rows[0]).toBe(row);
@bb/thread-view:test:     145|     expect(iterations).toBe(0);
@bb/thread-view:test:        |                        ^
@bb/thread-view:test:     146|   });
@bb/thread-view:test:     147| });
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test:  Test Files  1 failed (1)
@bb/thread-view:test:       Tests  3 failed | 1 passed (4)
@bb/thread-view:test:    Start at  10:36:26
@bb/thread-view:test:    Duration  903ms (transform 464ms, setup 0ms, import 672ms, tests 13ms, environment 0ms)
@bb/thread-view:test:
@bb/thread-view:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/thread-view#test:  ERROR  command (SCRATCH/base/packages/thread-view) pnpm run test --run test/issue-7694.test.ts exited (1)

 Tasks:    2 successful, 3 total
Cached:    1 cached, 3 total
  Time:    2.45s
Failed:    @bb/thread-view#test

 ERROR  run failed: command  exited (1)

Second clean-run output

   • turbo 2.11.10
   • Packages in scope: @bb/thread-view
   • Running test in 1 package
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing 2cbf82a4d1c41cd6
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 73f9bfdd153745fd
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker SCRATCH/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules SCRATCH/verify
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/thread-view:test: cache miss, executing bc0375576c6eb539
@bb/thread-view:test:
@bb/thread-view:test: > @bb/thread-view@0.0.1 test SCRATCH/verify/packages/thread-view
@bb/thread-view:test: > vitest run --config vitest.config.ts "--run" "test/issue-7694.test.ts"
@bb/thread-view:test:
@bb/thread-view:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/thread-view:test:   - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/thread-view:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/thread-view:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/thread-view:test:   - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/thread-view:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/thread-view:test:
@bb/thread-view:test:  RUN  v4.1.12 SCRATCH/verify/packages/thread-view
@bb/thread-view:test:
@bb/thread-view:test:  ❯ |@bb/thread-view| test/issue-7694.test.ts (4 tests | 3 failed) 13ms
@bb/thread-view:test:      × reuses the 'completed turn' view when only response text changes 8ms
@bb/thread-view:test:      × reuses the 'closed delegation' view when only response text changes 2ms
@bb/thread-view:test:      ✓ still removes duplicate descendants when a row is joined with itself 1ms
@bb/thread-view:test:      × does not rescan normalized children on a subsequent unchanged snapshot 2ms
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > reuses the 'completed turn' view when only response text changes
@bb/thread-view:test: AssertionError: expected { id: 'earlier-turn', …(11) } to be { id: 'earlier-turn', …(11) } // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: If it should pass with deep equality, replace "toBe" with "toStrictEqual"
@bb/thread-view:test:
@bb/thread-view:test: Expected: { id: 'earlier-turn', …(11) }
@bb/thread-view:test: Received: serializes to the same string
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test: Compared values have no visual difference.
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:79:23
@bb/thread-view:test:      77|     expect(second[1]).toMatchObject({ kind: "conversation", text: "AB"…
@bb/thread-view:test:      78|     expect(second[0]).toEqual(first[0]);
@bb/thread-view:test:      79|     expect(second[0]).toBe(first[0]);
@bb/thread-view:test:        |                       ^
@bb/thread-view:test:      80|   });
@bb/thread-view:test:      81|
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > reuses the 'closed delegation' view when only response text changes
@bb/thread-view:test: AssertionError: expected { id: 'earlier-delegation', …(19) } to be { id: 'earlier-delegation', …(19) } // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: If it should pass with deep equality, replace "toBe" with "toStrictEqual"
@bb/thread-view:test:
@bb/thread-view:test: Expected: { id: 'earlier-delegation', …(19) }
@bb/thread-view:test: Received: serializes to the same string
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test: Compared values have no visual difference.
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:79:23
@bb/thread-view:test:      77|     expect(second[1]).toMatchObject({ kind: "conversation", text: "AB"…
@bb/thread-view:test:      78|     expect(second[0]).toEqual(first[0]);
@bb/thread-view:test:      79|     expect(second[0]).toBe(first[0]);
@bb/thread-view:test:        |                       ^
@bb/thread-view:test:      80|   });
@bb/thread-view:test:      81|
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:  FAIL  |@bb/thread-view| test/issue-7694.test.ts > unchanged timeline row projections > does not rescan normalized children on a subsequent unchanged snapshot
@bb/thread-view:test: AssertionError: expected 2 to be +0 // Object.is equality
@bb/thread-view:test:
@bb/thread-view:test: - Expected
@bb/thread-view:test: + Received
@bb/thread-view:test:
@bb/thread-view:test: - 0
@bb/thread-view:test: + 2
@bb/thread-view:test:
@bb/thread-view:test:  ❯ test/issue-7694.test.ts:145:24
@bb/thread-view:test:     143|     });
@bb/thread-view:test:     144|     expect(second.rows[0]).toBe(row);
@bb/thread-view:test:     145|     expect(iterations).toBe(0);
@bb/thread-view:test:        |                        ^
@bb/thread-view:test:     146|   });
@bb/thread-view:test:     147| });
@bb/thread-view:test:
@bb/thread-view:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯
@bb/thread-view:test:
@bb/thread-view:test:
@bb/thread-view:test:  Test Files  1 failed (1)
@bb/thread-view:test:       Tests  3 failed | 1 passed (4)
@bb/thread-view:test:    Start at  10:36:43
@bb/thread-view:test:    Duration  884ms (transform 448ms, setup 0ms, import 649ms, tests 13ms, environment 0ms)
@bb/thread-view:test:
@bb/thread-view:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/thread-view#test:  ERROR  command (SCRATCH/verify/packages/thread-view) pnpm run test --run test/issue-7694.test.ts exited (1)

 Tasks:    2 successful, 3 total
Cached:    1 cached, 3 total
  Time:    2.41s
Failed:    @bb/thread-view#test

 ERROR  run failed: command  exited (1)

Build limitation

The initial unfiltered pnpm exec turbo run build failed in an unrelated plugin because the installed Plugin SDK lacked built process.js and host.js. No repository change was made to conceal or fix this unrelated build issue. The affected packages' targeted build and their relevant existing tests passed. Frozen installs succeeded; initial missing package-bin warnings are not reproduction failures. The full application build and live-app performance are not verified.

Trust boundary: issue content and the linked PR diff were treated as untrusted claims. No supplied scripts, patches, branches, or tests were executed. Only trusted main and this investigator's synthetic reproduction were run. No workflow, agent delegation, production server, or real user data was used.