Document host-test bootstrap for fresh worktrees and branch switches - #6084
Merged
Conversation
Running host tests from a fresh worktree, or from the shared checkout after switching to a branch based on newer main, fails in a way that looks like an endless build: the dev server / vite build reports a cryptic unresolved-import error and the QUnit page never boots. The cause is an un-bootstrapped tree — workspace packages added since the last install (e.g. @cardstack/bxl) aren't linked, and @cardstack/boxel-icons has no built dist. Add a packages/host subsection documenting the bootstrap order (mise trust, pnpm install, pnpm build-common-deps), the fastest way to diagnose a stuck test page (read the Vite error overlay's message rather than polling for QUnit), the two common unresolved-import → fix mappings, and why to prefer the headless build over a second env-locked live dev server. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014GsYGsuCqHJz9GAti4jheG
lukemelia
marked this pull request as ready for review
September 10, 2026 21:30
backspace
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background and Goal
Running the host test suite from a fresh
git worktree, or from the shared checkout right after switching to a branch based on newermain, fails in a way that reads like an endless cold build: the Vite dev server /vite buildthrows a cryptic unresolved-import error and the QUnit page never boots (window.QUnitstays undefined). The real cause is an un-bootstrapped tree — workspace packages added since the last install (e.g.@cardstack/bxl) aren't linked intopackages/*/node_modules, and@cardstack/boxel-iconshas no builtdist(it's produced byprepack, notinstall).This adds a
### packages/hostsubsection toAGENTS.mdso the next person (or agent) isn't stuck:mise trust→pnpm install→pnpm build-common-deps;.messagerather than polling for QUnit;@cardstack/bxl→ install;@cardstack/boxel-icons/*→ build-common-deps);vite build+ember test --path distpath over a second live dev server (the shared server is env-mode/Traefik-locked, and switching the shared tree under it triggers a long dep re-optimize).Docs-only; no code changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_014GsYGsuCqHJz9GAti4jheG