Skip to content

fix(build): reuse primary assets in worktrees [AGENT] - #139

Draft
utensil wants to merge 1 commit into
mainfrom
fix/worktree-wasm-cache
Draft

fix(build): reuse primary assets in worktrees [AGENT]#139
utensil wants to merge 1 commit into
mainfrom
fix/worktree-wasm-cache

Conversation

@utensil

@utensil utensil commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

Let a clean Jujutsu worktree reuse browser assets from the primary checkout.

  • Copy a missing WASM package only when its recorded source hash and required files match.
  • Use the primary checkout's theme asset when the worktree lacks the submodule.
  • Keep CI and UTS_DEV source builds unchanged; fail early when no valid local cache exists.

Scale

Changes build.sh and justfile by +51/-12 lines.

Verification

  • A fresh worktree restored all three package trees exactly and passed just build.
  • A second build passed from the worktree copies.
  • An invalid primary root failed before any source clone.
  • ShellCheck reports no new finding in the changed lines.

Human-gated. Auto-merge is disabled.

(per G-scope, G-lint, G-verify, G-commit, G-safe)

Clean worktrees lack CI-built WASM packages and the initialized theme. Reuse them from the primary Jujutsu checkout only when the recorded source hash and expected files match. Fail with the priming command otherwise. CI and UTS_DEV behavior is unchanged.
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