Fix OpenClaw 9.3 SQLite worker startup in AppContainer mode - #226
Merged
Conversation
Align installer, desktop, build and CI Node runtime gates with the upstream engine range. Update pinned MXC approval bundles and advertise approval delivery only while MXC is enabled. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept the upstream readonly worker caller and optional canonical PID-bound staging directory while retaining existing executable, state and preload restrictions. Preserve the worker kill signal and add regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Description
Fix the startup failure discovered during a real packaged upgrade from OpenClaw
2026.8.2to2026.9.3after #225.OpenClaw 9.3 launches its SQLite read-only helper from a dedicated
sqlite-readonly-worker-*module and passes an optional staging directory. MicroClaw's existing internal-worker recognition only accepted the previous caller and four arguments, so it routed the helper through AppContainer. The helper then failed to resolve the state database withEPERM, causing Gateway startup to fail and the installer to roll back.Related Issue
Follow-up to #225. No separate issue.
Changes
killSignalalongside its timeout.Type of Change
Testing
cd desktop && npm run test)cd desktop/renderer && npm run test)cd desktop && npm run build)sandbox-logic.test.tsandsandbox-fs-hooks.test.ts, rerun before publishing. Full test suites were not run.build.ps1packaging succeeded.Recorded installation timing
Single-machine upgrade with existing Node
24.18.0, Git, user state, and populated npm cache; not a clean-install benchmark. Successful installation was measured on 2026-09-10.doctor --fix)Setup extraction/UI preparation took 30.54 seconds; observed setup launch through completion was 656.05 seconds. Backup contained 107,814 files / approximately 2.25 GiB. Final full build took 296.73 seconds, counted separately.
The original failed attempt took 880.89 seconds including automatic rollback; it is excluded from the successful sample. Detailed logs and JSON/CSV timing artifacts remain local and are not committed.
Checklist
No user-facing configuration or workflow changes require documentation updates. The final checkbox refers to the targeted test selection above.