Skip to content

feat(wasm): make RAG opt-in - #4748

Merged
aheritier merged 1 commit into
docker:mainfrom
dgageot:wasm-rag-opt-in
Oct 27, 2026
Merged

aheritier merged 1 commit into
docker:mainfrom
dgageot:wasm-rag-opt-in

Conversation

@dgageot

@dgageot dgageot commented Oct 27, 2026

Copy link
Copy Markdown
Member

Why

RAG support in the WASM build was always wired in, pulling in its dependencies
and validation logic unconditionally even when a config didn't use it.

What

  • RAG is now off by default in the WASM runtime and opt-in via the
    docker_agent_wasm_rag build tag/flag.
  • RAG wiring and validation moved behind a compile-time boundary so the
    default WASM build excludes it entirely.
  • Decoupled the documents input handling from RAG so it can be used
    independently.
  • Configs that reference unsupported/disabled features are now strictly
    rejected instead of silently ignored.
  • Added dependency guards to keep RAG-specific deps out of the default build.
  • Added JS, Go, and browser tests covering both the default and RAG-enabled
    builds.
  • Updated docs to reflect the opt-in behavior.

Native (non-WASM) runtime behavior is unchanged.

Validation

  • task build, task test, task lint (with CI=true)
  • Targeted GOOS=js lint for both default and RAG builds
  • task test-wasm-js, task test-wasm-bridge, task test-wasm-browser (13 browser checks)
  • Focused e2e dependency tests, plus cloud+RAG Go/WASM tests
  • Syntax/whitespace checks

@dgageot
dgageot requested a review from a team as a code owner October 27, 2026 17:25
@aheritier aheritier added area/docs Documentation changes area/rag For work/issues that have to do with the RAG features area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/testing Test infrastructure, CI/CD, test runners, evaluation kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Oct 27, 2026
@aheritier
aheritier added this pull request to the merge queue Oct 27, 2026
Merged via the queue into docker:main with commit 8f0eb5c Oct 27, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes area/rag For work/issues that have to do with the RAG features area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/testing Test infrastructure, CI/CD, test runners, evaluation kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants