Skip to content

fix(agents): serialize sandbox provisioning - #115645

Merged
vincentkoc merged 4 commits into
mainfrom
fix/sandbox-browser-lifecycle-e2e-20260729
Jul 29, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/sandbox-browser-lifecycle-e2e-20260729

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Closes #115252
Related: #51363

What Problem This Solves

Fixes an issue where concurrent sandbox requests could race while creating the same normal or browser Docker container, producing a container-name conflict instead of one reusable sandbox context. It also closes the package-backed Docker proof gap for the sandbox browser sidecar.

Why This Change Was Made

The normal sandbox and browser sidecar lifecycles now serialize by their concrete bounded container names, so later callers re-read Docker state after create, start, or replacement completes. A service-class Docker E2E lane installs the packed OpenClaw tarball and verifies concurrent provisioning, authenticated browser control, a real Chrome snapshot, packaged CLI listing, browser recreation, and cleanup.

The branch also repairs the remaining current-main code-mode matrix boundary failure by importing the QA Lab public barrel through its supported .js specifier. The callback typing failure was independently fixed by #115674 while this PR was in flight.

User Impact

Concurrent agent startup can converge on one sandbox and browser sidecar without intermittent Docker name conflicts. Maintainers also get a real package-backed regression lane for this workflow.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 06:02
@vincentkoc
vincentkoc requested a review from a team as a code owner July 29, 2026 06:02
@vincentkoc
vincentkoc force-pushed the fix/sandbox-browser-lifecycle-e2e-20260729 branch 4 times, most recently from 3f25ca9 to db880a6 Compare July 29, 2026 06:30
@vincentkoc
vincentkoc force-pushed the fix/sandbox-browser-lifecycle-e2e-20260729 branch from db880a6 to f84d263 Compare July 29, 2026 06:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready at f84d26320b493d2c8ffa552587292cb51b7237be.

No ClawSweeper comment or Rank-up moves: list is present. Issue #51363 remains broader than this fix and should stay open.

@vincentkoc
vincentkoc merged commit 9daa609 into main Jul 29, 2026
127 checks passed
@vincentkoc
vincentkoc deleted the fix/sandbox-browser-lifecycle-e2e-20260729 branch July 29, 2026 06:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ifecycle-hooks

* origin/main:
  fix(agents): serialize sandbox provisioning (#115645)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(agents): serialize sandbox provisioning

* test(docker): add sandbox browser sidecar e2e

* fix(ci): register sandbox browser e2e entrypoint

* fix(ci): restore code mode matrix checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docker Docker and sandbox tooling maintainer Maintainer-authored PR scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add real Docker E2E for the sandbox browser sidecar

1 participant