Skip to content

Point the refresh serialization test at inspect_git_source - #2673

Merged
SawyerHood merged 1 commit into
mainfrom
bb/fix-branch-refresh-dispatch-test
Aug 28, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/fix-branch-refresh-dispatch-test

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

#2616 split the host RPC host.list_branches into host.inspect_git_source (checkout metadata, remoteRefresh: "background" | "blocking") and host.list_branch_options (branch pagination). One call in apps/host-daemon/test/command/host-branches-dispatch.test.ts kept the removed name.

CI is red on main and on every open PR:

  • Checks (ubuntu-latest, Node 22.x) — test/command/host-branches-dispatch.test.ts(392,11): error TS2820: Type '"host.list_branches"' is not assignable.
  • Tests (packages, ubuntu-latest, Node 22.x) — host.inspect_git_source dispatch > serializes branch refresh and provisioning fetches for one repository fails with File did not appear within 2000ms: .../refresh-started. The removed command never triggers the delayed upload-pack, so the marker never appears.

What changed

apps/host-daemon/test/command/host-branches-dispatch.test.ts — one call site.

The test asserts that a blocking remote refresh holds the repository lock while a worktree provisions, so the provisioning fetch waits. Blocking refresh moved to host.inspect_git_source, and the test already sits inside that command's describe block. The call now uses { type: "host.inspect_git_source", path: repoPath, remoteRefresh: "blocking" }, and the promise is renamed branchListing -> sourceInspection to match.

No source, contract, wire, CLI, or doc changes. HOST_DAEMON_PROTOCOL_VERSION is untouched, because the command contract does not change here.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/host-daemon — passes. It fails on main with TS2820.
  • pnpm exec turbo run test --filter=@bb/host-daemon -- host-branches-dispatch — 18 tests pass, including the serialization test that fails on main.

AGENT GENERATED

PR #2616 split `host.list_branches` into `host.inspect_git_source` and
`host.list_branch_options`, but one call in the host-daemon dispatch test
kept the removed name. `@bb/host-daemon` typecheck fails with TS2820 and
the test times out, so CI is red on main and on every open PR.

The test asserts that a blocking remote refresh holds the repository lock
while a worktree provisions. Blocking refresh now lives on
`host.inspect_git_source`, and the test already sits in that command's
describe block, so point the call there and rename the promise.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood
SawyerHood merged commit 9a8e751 into main Aug 28, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/fix-branch-refresh-dispatch-test branch August 28, 2026 21:41
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.

2 participants