Skip to content

docs(windows): note Git Bash requirement for A2UI builds#44234

Open
aniruddhaadak80 wants to merge 2 commits intoopenclaw:mainfrom
aniruddhaadak80:docs/windows-a2ui-build-troubleshooting
Open

docs(windows): note Git Bash requirement for A2UI builds#44234
aniruddhaadak80 wants to merge 2 commits intoopenclaw:mainfrom
aniruddhaadak80:docs/windows-a2ui-build-troubleshooting

Conversation

@aniruddhaadak80
Copy link
Copy Markdown

Summary

  • Problem: native Windows contributors do not currently get a clear build-time hint that pnpm build reaches a Bash-based A2UI bundle step.
  • Why it matters: when that prerequisite is missing, Windows users can hit a build failure without an obvious recovery path.
  • What changed: added a concise native-Windows note in the from-source setup guide and a matching FAQ troubleshooting entry.
  • What did NOT change (scope boundary): no runtime behavior or build scripts changed in this PR.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

User-visible / Behavior Changes

  • Contributors building from native Windows now have an explicit docs path for the Git Bash prerequisite and the WSL2 fallback.

Security Impact (required)

  • New permissions/capabilities? (No)
  • Secrets/tokens handling changed? (No)
  • New/changed network calls? (No)
  • Command/tool execution surface changed? (No)
  • Data access scope changed? (No)

Repro + Verification

Environment

  • OS: Windows
  • Runtime/container: local Node/pnpm workspace
  • Model/provider: N/A
  • Integration/channel (if any): N/A
  • Relevant config (redacted): N/A

Steps

  1. Read the from-source setup docs and Windows FAQ.
  2. Confirm the native Windows Bash/A2UI bundle prerequisite and recovery path are documented.
  3. Run the repo docs checks.

Expected

  • The docs should clearly tell native Windows contributors to install Git for Windows / Git Bash or use WSL2 for repo builds.

Actual

  • The docs checks pass and the Windows build prerequisite is now documented in both setup and troubleshooting locations.

Evidence

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

  • Verified scenarios: ran pnpm check:docs through Git Bash.
  • Note: the same command fails under PowerShell because the current docs pipeline depends on xargs; validation was therefore run through Git Bash to keep the repository's intended docs gate intact.

Compatibility / Migration

  • Backward compatible? (Yes)
  • Config/env changes? (No)
  • Migration needed? (No)

Failure Recovery (if this breaks)

  • Revert the docs-only changes.
  • Known bad symptoms reviewers should watch for: none beyond wording/placement disagreements.

Copilot AI review requested due to automatic review settings March 12, 2026 16:34
@openclaw-barnacle openclaw-barnacle bot added docs Improvements or additions to documentation size: XS labels Mar 12, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 12, 2026

Greptile Summary

This is a documentation-only PR that adds a native Windows prerequisite callout to docs/start/setup.md and a matching troubleshooting FAQ entry to docs/help/faq.md, both pointing Windows contributors to install Git for Windows (for Git Bash) or use WSL2 before running pnpm build.

  • The new FAQ item (**3) \pnpm build` fails around `canvas:a2ui:bundle` / `bash`**`) is well-placed, accurate, and consistent with the surrounding Windows FAQ content.
  • The setup note in docs/start/setup.md is correct in content but uses plain markdown rather than the <Note> MDX component already used earlier in the same file — a minor formatting inconsistency worth aligning.
  • No runtime or build-script changes are included; the scope is purely documentation.

Confidence Score: 5/5

  • Safe to merge — documentation-only change with no impact on runtime or build behaviour.
  • Both changes are purely additive docs updates. Content is accurate, placed appropriately, and the only concern is a minor formatting inconsistency in setup.md (plain markdown vs. the existing <Note> component). No logic, security, or build changes are present.
  • No files require special attention beyond the minor formatting note on docs/start/setup.md.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: docs/start/setup.md
Line: 30-34

Comment:
**Inconsistent note formatting**

The file already uses a `<Note>` MDX component at the top (lines 11–14) for callout-style content. This plain "Native Windows note:" paragraph doesn't match that convention and may render without any visual distinction in the docs site. Consider wrapping it in the same component for consistency:

```suggestion
<Note>

**Native Windows:** The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
Install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
WSL2 remains the recommended Windows path for the full Gateway/tooling stack.

</Note>
```

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: a207029

Comment on lines +30 to +34
Native Windows note:

- The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
- If you build from native Windows instead of WSL2, install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
- WSL2 remains the recommended Windows path for the full Gateway/tooling stack.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent note formatting

The file already uses a <Note> MDX component at the top (lines 11–14) for callout-style content. This plain "Native Windows note:" paragraph doesn't match that convention and may render without any visual distinction in the docs site. Consider wrapping it in the same component for consistency:

Suggested change
Native Windows note:
- The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
- If you build from native Windows instead of WSL2, install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
- WSL2 remains the recommended Windows path for the full Gateway/tooling stack.
<Note>
**Native Windows:** The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
Install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
WSL2 remains the recommended Windows path for the full Gateway/tooling stack.
</Note>
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/start/setup.md
Line: 30-34

Comment:
**Inconsistent note formatting**

The file already uses a `<Note>` MDX component at the top (lines 11–14) for callout-style content. This plain "Native Windows note:" paragraph doesn't match that convention and may render without any visual distinction in the docs site. Consider wrapping it in the same component for consistency:

```suggestion
<Note>

**Native Windows:** The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
Install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
WSL2 remains the recommended Windows path for the full Gateway/tooling stack.

</Note>
```

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates contributor documentation to reduce native-Windows build confusion by calling out the repo’s Bash-dependent A2UI bundling step and pointing to remediation paths (Git Bash / WSL2).

Changes:

  • Added a native-Windows prerequisite note to the from-source setup guide calling out the Bash-based canvas:a2ui:bundle step.
  • Added a Windows FAQ troubleshooting entry for pnpm build failures around canvas:a2ui:bundle / bash.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/start/setup.md Documents the Bash/Git Bash prerequisite for native Windows from-source builds.
docs/help/faq.md Adds troubleshooting guidance for Windows pnpm build failures related to the A2UI bundling Bash script.

Comment on lines +586 to +587
**3) `pnpm build` fails around `canvas:a2ui:bundle` / `bash`**

Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new item is about from-source builds (pnpm build), but it’s nested under a Windows FAQ section titled as an installer-path problem. Consider moving it to a more build-specific troubleshooting section or adjusting the surrounding section title so readers can find this issue more predictably.

Copilot uses AI. Check for mistakes.
Native Windows note:

- The repo build runs `pnpm canvas:a2ui:bundle`, which invokes a Bash script for the A2UI host bundle.
- If you build from native Windows instead of WSL2, install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guidance here implies that installing Git for Windows is sufficient before running pnpm build, but on Windows bash in npm scripts can still resolve to the System32 WSL stub (the common failure mode in #43891) unless the command is run from Git Bash or PATH is arranged so Git’s bash.exe wins. Consider updating the note to explicitly instruct running the build inside Git Bash (or otherwise ensuring bash resolves to Git Bash) rather than just “Git Bash is available”.

Suggested change
- If you build from native Windows instead of WSL2, install **Git for Windows** so Git Bash is available before running `pnpm build` or `pnpm build:strict-smoke`.
- If you build from native Windows instead of WSL2, install **Git for Windows** and run `pnpm build` / `pnpm build:strict-smoke` **from a Git Bash terminal** (or otherwise ensure that `bash` resolves to Git’s `bash.exe`, not the Windows System32 WSL stub).

Copilot uses AI. Check for mistakes.
Comment on lines +588 to +589
- The from-source build bundles A2UI through a Bash script.
- Install **Git for Windows** so Git Bash is available, then reopen PowerShell and rerun the build.
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggests “install Git for Windows … then reopen PowerShell and rerun”, but if bash resolves to the Windows System32 WSL stub, rerunning from PowerShell may still fail even after installing Git for Windows. Recommend telling users to run pnpm build from the Git Bash terminal (or to adjust PATH / verify where bash points to Git) so the script actually uses Git Bash.

Suggested change
- The from-source build bundles A2UI through a Bash script.
- Install **Git for Windows** so Git Bash is available, then reopen PowerShell and rerun the build.
- The from-source build bundles A2UI through a Bash script, so a working **Git Bash** is required on Windows.
- Install **Git for Windows** so Git Bash is available.
- Run `pnpm build` from a **Git Bash** terminal (or make sure `where bash` shows the Git Bash executable, not the Windows System32 WSL stub, before rerunning from other shells).

Copilot uses AI. Check for mistakes.
@johnsonshi
Copy link
Copy Markdown
Contributor

Overall this looks good. The Windows documentation changes do address the gap behind #43891 by calling out the Git Bash prerequisite / WSL2 fallback in both docs/start/setup.md and the FAQ, which is useful.

The main thing I’d flag is scope: this PR is titled and described as a Windows/A2UI documentation fix, but it also includes a separate iOS docs change in docs/platforms/ios.md (and that change is even a separate commit). I’d prefer splitting that into its own PR.

Minor nit: in docs/start/setup.md, consider using the existing `` callout style for the new Windows guidance so it stays consistent with the rest of the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants