fix(aws): auto-select server size by agent#2676
Merged
louisgv merged 5 commits intoOpenRouterTeam:mainfrom Mar 16, 2026
Merged
Conversation
OpenClaw gets 4GB (medium_3_0), all other agents get 2GB (small_3_0). Users can still override with SPAWN_CUSTOM=1 or LIGHTSAIL_BUNDLE env var. Matches the auto-select behavior already used by DO and Hetzner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Detects win32 platform and prints step-by-step WSL setup instructions instead of failing with a confusing error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 8db7288.
louisgv
requested changes
Mar 16, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: CHANGES REQUESTED
Commit: 7907c7d
Findings
- LOW packages/cli/src/aws/aws.ts:699 — New env var gate
SPAWN_CUSTOMintroduces additional control flow. No injection risk detected, but adds complexity to bundle selection logic. - BLOCKER packages/cli/src/tests/aws.test.ts:173 — Test expects
DEFAULT_BUNDLE.idto be"nano_3_0"but PR changed it to"small_3_0". Test must be updated to pass.
Tests
- bash -n: N/A (no .sh files changed)
- bun test: FAIL (1 test failure in aws.test.ts line 173)
- curl|bash: N/A
- macOS compat: N/A
Required Fix
Update the test expectation in packages/cli/src/__tests__/aws.test.ts:173:
it("is small_3_0", () => {
expect(DEFAULT_BUNDLE.id).toBe("small_3_0");
});-- security/pr-reviewer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
louisgv
previously approved these changes
Mar 16, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Commit: d16d340
Findings
No security issues found. Changes reviewed:
- DEFAULT_BUNDLE upgraded from nano_3_0 (512 MB) to small_3_0 (2 GB) — reasonable for modern agents
- Auto-select logic now requires explicit
SPAWN_CUSTOM=1to show interactive bundle picker - No injection risks, credential leaks, or unsafe patterns introduced
Tests
- bash -n: N/A (no .sh files changed)
- bun test: PASS (1417/1417 tests passing)
- curl|bash: N/A
- macOS compat: N/A (TypeScript changes only)
Verdict
Clean security review. All tests pass. Ready to merge.
-- security/pr-reviewer
louisgv
approved these changes
Mar 16, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Commit: 8715a187b5e7a77f5ca9a5b9af7bc2aaf8c9fd68
Findings
No security issues found. Changes reviewed:
- DEFAULT_BUNDLE upgraded from nano_3_0 (512 MB) to small_3_0 (2 GB) — reasonable for modern agents
- Auto-select logic now requires explicit
SPAWN_CUSTOM=1to show interactive bundle picker - Version conflict with main resolved (bumped to 0.19.7)
- No injection risks, credential leaks, or unsafe patterns introduced
Tests
- bash -n: N/A (no .sh files changed)
- bun test: PASS (1417/1417 tests passing)
- curl|bash: N/A
- macOS compat: N/A (TypeScript changes only)
CI Status
All checks passing:
- ✓ ShellCheck: SUCCESS
- ✓ Biome Lint: SUCCESS
- ✓ Unit Tests: SUCCESS
- ✓ Mock Tests: SUCCESS
- ✓ macOS Compatibility: SUCCESS
Verdict
Clean security review. All tests and checks pass. Ready to merge.
-- security/pr-reviewer
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
SPAWN_CUSTOM=1(interactive picker) orLIGHTSAIL_BUNDLE=<id>(explicit)Test plan
spawn openclaw aws→ auto-selects medium_3_0 (4GB)spawn claude aws→ auto-selects small_3_0 (2GB)spawn claude aws --custom→ shows instance size pickerLIGHTSAIL_BUNDLE=nano_3_0 spawn claude aws→ uses nano override🤖 Generated with Claude Code