Repository navigation
feat(wasm): include Anthropic in the small browser profile - #5027
Merged
Merged
Conversation
Signed-off-by: David Gageot <david.gageot@docker.com>
trungutt
approved these changes
Nov 24, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the addition of Anthropic support to the small browser WebAssembly profile.
No open issues 🎉
What changed in this PR
Adds native Anthropic support to docker-agent’s small browser WebAssembly profile alongside OpenAI and OpenAI-compatible providers. Gemini and cloud providers remain excluded.
Changes:
- Moves Anthropic registration into the shared browser provider registry.
- Updates provider, offline session, and dependency checks for the expanded small profile.
- Documents the roughly 34 MiB optimized build and raises its size budget to 37 MiB.
| File | Description |
|---|---|
Taskfile.yml |
Includes shared provider tests in the small-profile test command. |
e2e/dependencies_test.go |
Allows Anthropic dependencies while enforcing excluded provider boundaries. |
cmd/wasm/small.go |
Updates the profile comment to reflect Anthropic support. |
cmd/wasm/small_test.go |
Updates rejected providers and checks provider-specific errors. |
cmd/wasm/small_off.go |
Leaves Google and optional cloud registration profile-specific. |
cmd/wasm/README.md |
Updates supported providers, build size, and registry documentation. |
cmd/wasm/providers.go |
Registers Anthropic in every browser profile. |
cmd/wasm/providers_test.go |
Makes shared provider tests selectable for the small profile. |
cmd/wasm/node/small_test.js |
Adds offline Anthropic session coverage and updates the size budget. |
Review effort: Balanced
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.
Summary
Include native Anthropic alongside OpenAI and OpenAI-compatible providers in the small browser build, so Claude sessions can be created without the full profile. Gemini and cloud providers remain excluded. Update the documentation, size budget, and offline session and dependency tests.
The optimized build is 34.37 MiB raw, 8.01 MiB gzip, and 5.46 MiB Brotli with Go 1.27.4 and Binaryen 132.
Validation
task buildtask testtask linttask test-wasm-jstask test-wasm-bridge