Skip to content

Delete unused code, expired compatibility paths and redundant tests - #4606

Merged
SawyerHood merged 22 commits into
mainfrom
delete-unused-code
Oct 1, 2026
Merged

SawyerHood merged 22 commits into
mainfrom
delete-unused-code

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The repo carried code with no production caller, compatibility paths past their own documented removal version, and tests that repeated a stronger test or could not fail. None of it is a behavior bug; it is maintenance weight, and several of the tests existed only to keep dead exports alive.

What changed

808 files, +3,327 / −31,074 (production −4,751 net, tests and fixtures −22,501 net, docs and config −495 net). The 21 commits are grouped by kind so any one can be dropped.

Unused code

  • Exports and files that nothing imports, and the locals that only served them.
  • Unreachable UI: the compact right-panel shelf presentation no caller selects, a story for a diff layout production no longer renders, app sidebar primitives only the thread-list plugin's own copy uses, props nobody passes, CSS rules and theme tokens nothing applies or reads.
  • Host-daemon wire members neither side uses: the host.file_metadata command, the disallowedTools runtime-context field, cwd/requirement on provider installation and usage commands, appliedAs and serviceManager result fields.
  • Data-layer options, parameters and fields with no production caller; event-pruning entry points only tests called.
  • One-off benchmark scripts, the Mobile Runner Probe workflow, package scripts and turbo tasks nothing invokes, docs for machine plugins that never shipped, and dependencies no source imports.

No longer needed

  • Plugin SDK aliases scheduled to go in bb 0.42 (experimental_UrlLink, experimental_openUrl, the renderer experimental_Original alias, the throwing registerProvider and toConformanceMessages stubs).
  • The customAcpAgents config.json array ("support ends in 0.41"). An old file still loads; the key is ignored with a warning and is not written back.
  • One-shot localStorage migrations (sidebar preference upload, favicon tint, unscoped model/reasoning keys, the windsurf rename), the sidebarProgressiveDisclosure experiment that no code reads, the bb manager removed-command notice, the order-changed change kind nothing emits, and migrate() repairs for migration histories that only existed on unmerged branches.

Tests

  • About 590 tests removed or merged across the app, server, db, host daemon, provider bridges, plugins and CLI. Each one repeated a stronger test of the same behavior or could not fail.

Versions and surfaces

  • HOST_DAEMON_PROTOCOL_VERSION 223 → 224 for the removed wire members (noted in docs/debugging-and-qa.md).
  • @get-bb/plugin-sdk 0.6.7 → 0.6.8 for the removed experimental aliases and narrowed thread-event types.
  • bb manager is gone from the CLI and the bb-cli skill index; manager is no longer a reserved plugin command name.
  • The published bridge-protocol disallowedTools field stays and is listed under scheduled removals in docs/api_to_audit.md.

Things a user could notice

  • Someone upgrading from 0.42 or earlier straight past 0.44 starts with default sidebar preferences, since the one-shot upload is gone.
  • customAcpAgents in config.json is dropped from the file on the next managed write.

Deliberately not in this PR

  • Upgrade repairs for databases from released versions, the kernel-automations export/import, and other paths that need a minimum supported upgrade version.
  • Schema drops that need a migration (for example thread_dynamic_context_file_states).
  • Unprefixed public SDK and bridge-protocol members with no in-repo consumer.

How you verified

  • pnpm exec turbo run build typecheck lint test --continue: 290 of 291 tasks pass. The one failing task is @bb/server#test, on test/services/plugins/plugin-native-server-loading.test.ts, which times out at 5 s on this machine on clean main as well.
  • node scripts/check-source-nul.mjs, packages/plugin-sdk/scripts/check-npm-version-guard.mjs, .github/workflows/check-plugin-sdk-version.mjs, .github/workflows/check-version-lockstep.mjs, apps/app/scripts/check-bundle-budget.mjs, scripts/check-provider-literal-ratchet.mjs: all pass.
  • node scripts/check-plugin-forks.mjs, turbo run smoke:tarball --filter=bb-app (with pi off PATH), and turbo run test --filter=@bb/integration-tests passed on the tree before the last four main commits were brought in.
  • Provider corpus row gate: all 340 threads (106,499 rows) are byte-identical to a baseline written from current main.
  • Every removed test was checked by mutating the production code and confirming a remaining test fails, first by the author and then independently against before/after checkouts. The independent pass found lost coverage in every area (2 to 12 items each); those tests were kept or restored.
  • The dead-code commits were reviewed by independent readers trying to refute each deletion. One was reverted as a result: removing the workspace-write permission-mode rewrite would have moved stale profiles to a more permissive default.
  • Not run: the real-provider @bb/agent-runtime integration suite at the final tip (64 of 65 mid-way, with the same single failure as the base), the desktop smokes, and mobile e2e. No manual UI pass was done; the compact right panel is the change most worth a look on a phone-width viewport.

🤖 Generated with Claude Code

AGENT GENERATED

SawyerHood and others added 21 commits October 1, 2026 04:36
Removes exported symbols that nothing imports and that are not used in
their own file, the files that became empty, and the locals and imports
that were only there for them. Names the published plugin SDK re-exports
are kept.

Co-Authored-By: Claude Code <[email protected]>
The plugin SDK aliases scheduled to go in bb 0.42 (experimental_UrlLink,
experimental_openUrl, the renderer experimental_Original alias, and the
throwing registerProvider and toConformanceMessages stubs) and the
customAcpAgents config.json array, whose support ended in 0.41. A config
file that still carries the array keeps loading; the key is ignored.

Co-Authored-By: Claude Code <[email protected]>
The compact right-panel shelf presentation that no caller selects, a
story for a diff layout production no longer renders and the props only
it used, app sidebar primitives only the thread-list plugin's own copy
uses, an unreachable thread-tree variant, optional props nobody passes,
CSS rules with no applier, and theme tokens nothing reads.

Co-Authored-By: Claude Code <[email protected]>
…ependencies

Two one-off benchmark scripts, per-workstream corpus allowlists whose
README says to delete them, the Mobile Runner Probe workflow, package
scripts and turbo tasks nothing invokes, docs for machine plugins that
never shipped, stale inventory and doc entries, and dependencies no
source file imports (radix and vaul in nine plugins, zod, sonner, and the
app's hugeicons packages).

Co-Authored-By: Claude Code <[email protected]>
Helpers and re-exports whose only callers were their own tests, and
function parameters and props that no caller passes or reads.

Co-Authored-By: Claude Code <[email protected]>
The host.file_metadata command the server never sends, the
disallowedTools runtime-context field that has been undefined since the
server stopped producing it, provider command fields the server never
sets, result fields the server never reads, the host.js to host.mjs cache
migration, the BB_HOST_NAME env var, the terminal WebSocket close message
with no sender, and an API guard with no routes behind it. The published
bridge-protocol disallowedTools field stays and is listed as a scheduled
removal.

Co-Authored-By: Claude Code <[email protected]>
One-shot localStorage migrations (sidebar preference upload, favicon
tint, unscoped model and reasoning keys, the windsurf open-target
rename), the single-window window-state fallback no tagged build wrote,
the sidebarProgressiveDisclosure experiment that no code reads, the bb
manager removed-command notice, the order-changed change kind nothing
emits, the system/error reconnect fields nothing ever wrote, and an
always-true gate. The workspace-write permission-mode rewrite stays: it
was never written back to storage, so removing it would move stale
profiles to a more permissive default.

Co-Authored-By: Claude Code <[email protected]>
The always-true deferDestructiveLegacyCleanup option, migrate() repairs
for migration histories that only existed on unmerged branches,
event-pruning entry points only tests called (their tests now run
through advanceThreadPruning), the clientRequestSequence guard, and
options, parameters and fields in the db, tasks, workflows, memory,
GitHub, account-pool and AI gateway data code that no caller uses.

Co-Authored-By: Claude Code <[email protected]>
The removed aliases and narrowed thread event types change the published
SDK surface. Also warns when config.json still carries customAcpAgents,
drops two unused re-exports from the host-daemon contract, restores a
turn-ran assertion in a retargeted dispatch test, and corrects a type
name in an SDK doc comment and an export count in the API audit notes.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also un-exports test-only helpers in the side-chat, git-worktree,
ask-user-question, GitHub, Plugin Guide and concurrency-limit plugins.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also un-exports six test-only symbols and removes the plugin frontend
loader's no-op injectCss dependency.

Co-Authored-By: Claude Code <[email protected]>
…core

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also folds ten copies of a thread-view row-collector helper into the
shared harness and un-exports five test-only symbols.

Co-Authored-By: Claude Code <[email protected]>
…tion

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Co-Authored-By: Claude Code <[email protected]>
… packages

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also removes the test-only providerInstallationGateTtlMs option and
rewrites the branch-name contract test, which could not fail.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Co-Authored-By: Claude Code <[email protected]>
…, commands)

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also removes app code only those tests reached: the section-order hook
(inlined), the inline rename's non-thread modes, and the visibility
editor's toggle-on-click mode.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Co-Authored-By: Claude Code <[email protected]>
…automations, connect and docs plugins

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also removes the description saver's test-only schedule option; its
tests now run on fake timers against the real timer.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Co-Authored-By: Claude Code <[email protected]>
…panel, views)

Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Also removes the app ThreadActionsMenu rename props that no production
caller passed and six test-only exports.

Co-Authored-By: Claude Code <[email protected]>
Each removed or merged test either repeated a stronger test of the same
behavior or could not fail. Every deletion was checked by mutating the
production code and confirming that a remaining test fails, first by the
author and then independently against before and after checkouts; tests
whose mutation only they caught were kept or restored.

Codex translation tests whose exact cases the recorded replays cover are
removed; the replay task hashes the provider plugins' source.

Co-Authored-By: Claude Code <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T04:47:17.196642Z 26c617f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SawyerHood
SawyerHood merged commit 3f28c07 into main Oct 1, 2026
20 checks passed
@SawyerHood
SawyerHood deleted the delete-unused-code branch October 1, 2026 05:42
smsunarto added a commit to smsunarto/bb-plugins that referenced this pull request Nov 19, 2026
…3) (#187)

* fix(scott-tasks): return a saved comment before agent delivery finishes

Port of upstream get-bb/bb#4679. The app's createComment waited for the
thread lookup and send before answering, so a slow or stuck worker
held the composer. The app now returns the saved comment at once and
delivers in the background; the CLI still waits so it can report the
notified count.

* feat(scott-tasks): move a task and its sub-tasks to another project

Port of the server and CLI half of upstream get-bb/bb#4100. A moved
task gets a fresh number in the target project, lands at the end of its
status column, and keeps its old key as an alias, so mentions and agent
instructions that name the old key still resolve. Labels are remapped
by name and created when missing. A sub-task moved on its own leaves
its parent. New: moveTaskToProject RPC and bb tasks move.

* feat(scott-tasks): move tasks from the detail page and the list's context menu

The UI half of upstream get-bb/bb#4100. The properties rail and inline
chips get a project picker, and a list row's context menu gets Move to
project. Opening a task by a key it had before a move asks the server
and follows the task to its current key.

* feat(scott-tasks): keep New task drafts and cap the dialog's height

The dialog half of upstream get-bb/bb#4100. Title, description and
attributes save to localStorage as they change, so an outside click,
Escape or reload no longer throws a long task away; Discard draft
clears it. The dialog is capped at 85dvh with the description
scrolling, so Create task stays reachable.

* fix(scott-tasks): port upstream touch, embed and download fixes

- get-bb/bb#5097: label and preset row actions stay visible on screens
  without hover, such as a 13-inch iPad.
- get-bb/bb#5157: a narrow desktop pane keeps the compact topbar; only
  touch screens get the taller one.
- get-bb/bb#5903: the whole task embed card opens the task, and a
  loading card no longer highlights on hover.
- get-bb/bb#5508: attachment downloads go through bb's saveFile, which
  the iOS shell implements with WebKit's native download.

* docs(scott-tasks): document bb tasks move; drop unused hono and cron-parser

hono 4.11.9 was a vulnerable pin that nothing imports; cron-parser is unused too.

* feat(scott-tasks): delegate as a child thread from a chosen base branch

bb tasks delegate takes --parent-thread, --parent-notifications auto|stuck|off and --base-branch, passed to threads.spawn. An orchestrating agent dispatches its crew as children so bb reports their turns to it, and starts each worktree from its own branch. --base-branch always means a new worktree, whatever the preset names, and leaves the preset unchanged.

* fix(scott-tasks): let the attachment preview's img own its object URL

Attachment chips set state in an effect to hold the preview URL; the <img> ref callback now creates and revokes it. Clears a react(set-state-in-effect) lint error.

* feat(scott-tasks): owned fields, crew snapshot and parent wakes for Captain

- defineField/setField: typed fields only the owning plugin may write; a write
  bumps the task's updated_at.
- crewSnapshot({threadIds, changedSince}): one read of task, parent, fields,
  preset, live status and the last notifying comment with its delivery state.
- bb tasks comment --notify-parent sends a one-line wake to the commenting
  thread's parent and retries from the database (1, 2, 5, 15 min; 6 attempts),
  then marks it undeliverable; --attach puts files on the comment first.
- delegate takes reportContract and drops its built-in contract under stuck;
  taskThreadsAttach keeps presetName; plugin callers may author comments.
- Task threads get an archived live status that unarchive reverses.

* perf(scott-tasks): drop unused toolbar and command exports

Cuts 10 KB of app.css that Tailwind generated for components nothing imports.

* fix(scott-tasks): let the list's empty state fill the scroller

Port of get-bb/bb#7613's Tasks part: the list's size container moves inside the scroller, and the empty state grows to fill it.

* fix(scott-tasks): resolve CLI file paths with the target host's path rules

Port of get-bb/bb#6760: file flags resolve with the SDK's host-path parser, so Windows drive and UNC paths from a remote thread resolve on that machine instead of with the server's node:path.

* refactor(scott-tasks): drop store inputs nothing passes

Port of the Tasks part of get-bb/bb#4606: create inputs no longer take an id, comment updates take only notifiedCount, attachment updates only blobPath, and new comments rely on the column's 0 default. The tie-break test sets its ids with SQL, as upstream's does. Skipped: upstream blanking the is_image migration (it already ran here), and displayWidth and the description saver's schedule option, which fork tests still use.

* test(scott-tasks): cover list scope switches while reads are pending

Ports get-bb/bb#7056's regression tests. Upstream fixed a list stuck behind placeholders when it switched scope to a cached list; the fork's collection-backed list already passes them, so no code change was needed. All shows every task the shared collection holds, so the All step checks no absent row.

* fix(scott-tasks): apply resize-measured layout in the resize frame

Port of get-bb/bb#7635's Tasks part. The board-width check and the list's row window read their size in a shared ResizeObserver and write it inside flushSync, so a resize never paints one frame of the old layout. lib/shared-resize-observer.ts is vendored from upstream's registry, which the desktop-v0.49.0 pin predates. The row window measures through a plain function of the element so the mount read stays a ref-derived layout measurement.

* docs(scott-tasks): record the upstream sync to get-bb/bb 48c3a78

Names the new upstream base and every change the fork holds, with the reason for each.

* fix(scott-tasks): settle the list's scroll scope during render, not from a ref

ListView read settledScope.current during render, the one oxlint error left in scott-tasks (react(refs)), so bunx oxlint on the plugin failed. The settled scope is now state set during render, like the saved preference above it, and settles in the same render its rows finish loading.

* fix(scott-tasks): stop an expired wake attempt from sending after a retry

Promise.race ended the 30s wait but not the attempt, so a stalled thread lookup could resume after a retry had delivered and wake the parent twice. The deadline now aborts the attempt's signal, and the attempt re-checks right before threads.send (and before recording a target) that it is unexpired and still the latest claim on a pending record. Review's deterministic repro is the regression test; it fails on the old code.

* chore(scripts): prune the resolved scott-tasks list refs baseline entry
ymichael added a commit that referenced this pull request Nov 24, 2026
…nd composer paste (#8083)

## Human comments

## What was wrong

Four `@bb/app` tests failed intermittently on Windows CI this week
(group C of the flake sweep: 18 + 8 + 2 + 1 failures since 11-17,
including main on 11-17, 11-19 and 11-23). Each has its own cause:

- **`ThreadDetailSecondaryContent.test.tsx`** (up to 6 tests per
failure, latest four on 11-23). The first test in the file that renders
the inline panel waits for every module the panel's open-time warmup
preloads. `ThreadSecondaryPanelWithTabWarmup` preloads ten tab-content
splits (terminal, browser deck, file preview, new tab, tab content), and
the panel mock loaded the real `ThreadSecondaryPanel` through
`importOriginal`. The lazy-module harness settles every in-flight import
before a `findBy` polls. That was 4.6 s and 9.8 s in passing Windows
runs on main, and past the 15 s limit in failing ones. The timed-out
test then leaves its `act()` open, so every later test in the file
renders an empty `<body><div/></body>`. That explains the cascade of
`inline-secondary-panel` not-found errors.
- **`PromptBoxInternal.test.tsx` › keeps HTML code and authored links
literal…** (8 failures, latest 11-19). The composer's thread-link paste
extension starts a 2 s conversion budget at paste time. It then
dynamically imports `mentions/pasted-thread-links` (remark/unified).
This test is the first paste in the file, so on a cold Windows worker
that module load can use up the whole budget. `finish()` then runs
before the module is loaded, and the paste is never converted (`expected
[] to have a length of 2 but got +0`).
- **`useThreadTimelineController.test.tsx` › keeps auto-loading when an
older page settles before its loading state renders** (2 failures). This
is a real race in `useAutoLoadOlderRows`. Two sentinel checks can run in
the same timers phase: the effect's rAF→`setTimeout(0)` and the
scroll-position `setTimeout(0)`. The first starts an older-page load
whose mocked request settles in microtasks, which clears
`loadInFlightRef`. The second then runs before React commits the new
cursor. It reads a stale `liveRef` and requests the same page again with
the old cursor. In the app that is a duplicate older-page request whose
response is thrown away. In the test the duplicate consumes the next
mocked page, so the real next load gets `undefined` and throws. That
disables auto-load, and `hasOlderTimelineRows` stays `true`.
- **`SplitThreadArea.test.tsx` › carries maximization through focus,
CLI-style open, and pane move** (1 failure, same SHA passed on attempt
2). `focusPane` sets the maximized pane synchronously, so the test's
first `waitFor` passed before the focus navigation to `thr-b` had
committed. If that route commit landed after the test's store-only
"CLI-style" open, route reconciliation moved focus back to `pane-2`. In
the app the real CLI path (`onThreadPaneAction`) navigates to the newly
focused pane itself, so only the test's shortened open could lose to the
stale route.

## What changed

- `apps/app/src/components/thread/timeline/useAutoLoadOlderRows.ts`: a
load now goes `idle → loading → settled`. Once settled, auto-load
refuses to start again until React commits: settling forces that commit,
and the layout effect that refreshes `liveRef` sets the phase back to
idle. This replaces `loadInFlightRef`. Settling forces the commit with a
`useState` setter, which `startLoad` lists as a dependency so React
Compiler can keep its memoization (a `useReducer` dispatch or a setter
destructured without its value fails the app build). The forced commit
is not a dependency of the frame-delayed sentinel check: a real page
already re-runs that check through its new cursor and loading state, and
a load that changes nothing (a split pane hidden by maximize, whose
controller returns immediately) must not re-check every frame. The first
version of this PR had that dependency and re-rendered such a pane about
48 times a second; `useAutoLoadOlderRows.test.tsx` now covers it.
- `useThreadTimelineController.test.tsx`: the auto-load race test holds
the frames that are pending when the intersection fires and releases
them in the same tick. Both checks then run in the same timers phase, so
the test exercises the race on every run instead of by chance.
- `ThreadDetailSecondaryContent.test.tsx`: the panel mock is now a plain
stub (no `importOriginal`), and the five tab-content modules the warmup
preloads are stubbed. This file renders none of them. Also deleted
"keeps the panel's own hide control for the inline thread panel": it was
the one test that rendered the real panel.
`ThreadDetailSecondaryContent` has passed no `inlinePanelToggle` since
#4606, and the inline "Hide right panel" control is covered by
`ThreadSecondaryPanel.collapseControl.test.tsx`. Its `renderActualPanel`
switch is gone with it.
- `PromptBoxInternal.test.tsx`: the thread URL paste `describe` loads
`pasted-thread-links` in `beforeAll`. Its tests then cover conversion
within the 2 s budget, not cold module loading. The product budget is
unchanged.
- `SplitThreadArea.test.tsx`: wait for the location to reach `thr-b`
after the focus command before simulating the CLI-style open.

No server/daemon wire, CLI or doc changes.

## How you verified

Reproduced each failure locally with its exact CI message, then checked
the fix against the same reproduction:

- **Auto-load race**: with the held-frame test, main's hook fails
**37/40** runs (`expected true to be false`). A trace shows the same
`anchorSeq: 2` page requested three times. The fixed hook passes
**40/40**. `useAutoLoadOlderRows.test.tsx` and
`ThreadTimelineSurface.test.tsx` pass.
- **No-op load loop**: with a hidden-by-maximize pane whose sentinel is
in range, the first version of this PR re-rendered the pane 48 times a
second (main: 0). The final hook re-renders once and stops, and the new
`useAutoLoadOlderRows` test fails on that first version (6 loads in 5
frames). The race test still passes 20/20 with the final hook.
- **Paste**: delaying the `pasted-thread-links` module load by 2.1 s
reproduces `expected [] to have a length of 2 but got +0`. 1.8 s passes,
so the boundary is the product's 2 s timer, not `waitFor`. With the
`beforeAll`, all 6 paste tests pass with the module load delayed 2.5 s.
- **SplitThreadArea**: holding the focus navigation until just after the
store-only open reproduces `expected 'pane-2' to be 'pane-3'`. The fixed
test waits for that commit.
- **ThreadDetailSecondaryContent**: on main at host load ~330, the first
inline-panel test took 7.6 s, 8.4 s and 7.9 s, and one run hit the 15 s
timeout with the same cascade as CI. With this change it took 1.4 s,
0.65 s and 1.4 s. One real `ThreadSecondaryPanelTabContent` load is
left: vitest serves the mock to the first of six concurrent dynamic
imports of that module and the real module to the rest.
- All six affected files (`ThreadDetailSecondaryContent`,
`SplitThreadArea`, `useThreadTimelineController`, `PromptBoxInternal`,
`useAutoLoadOlderRows`, `ThreadTimelineSurface`) together: **5/5 runs,
328/328 passing** (329/329 with the new no-op load test after the
follow-up commit), at host load averages of 64–185.
- `pnpm exec turbo run typecheck lint --filter=@bb/app` passes; `oxfmt
--check` is clean.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant