[DO NOT MERGE] fix(sdk-commands): make the local hammurabi dev server reliable - #1527
Draft
cyaiox wants to merge 2 commits into
Draft
[DO NOT MERGE] fix(sdk-commands): make the local hammurabi dev server reliable#1527cyaiox wants to merge 2 commits into
cyaiox wants to merge 2 commits into
Conversation
…s (pre-existing WIP)
- supervise the hammurabi child: auto-respawn with backoff on unexpected exit, loud status lines, give-up after 5 consecutive crashes (D1) - kill the whole process tree on shutdown so the real server is never orphaned holding the port (D2) - pin @dcl/hammurabi-server to an exact version + --prefer-offline: no more per-spawn registry resolution stalls or silent version drift (D3) - crash-proof the preview server: hot-reload ws 'error' listener, debounce rejection handling, process-level exception handlers (D4) - pre-check explicit --port availability with an actionable error (D5) - atomic server-storage.json writes (tmp+rename), loud reset warning, guarded scene.json parse during mid-save (D6) - restart the hammurabi child on scene rebuild so it never runs a stale bundle (D7) Claude-Session: https://claude.ai/code/session_01Kzo6zwrn1CA79S4RN1dgsU
This was referenced Aug 5, 2026
Draft
Contributor
Test this pull request
|
Deploying js-sdk-toolchain with
|
| Latest commit: |
b0d2726
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eb56461f.js-sdk-toolchain.pages.dev |
| Branch Preview URL: | https://stack-sdk-commands-dev-serve.js-sdk-toolchain.pages.dev |
cyaiox
marked this pull request as draft
August 5, 2026 14:25
cyaiox
force-pushed
the
stack/sdk-commands-storage-wip
branch
from
August 19, 2026 15:00
19739d5 to
94924cd
Compare
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.
exit, loud status lines, give-up after 5 consecutive crashes (D1)
orphaned holding the port (D2)
more per-spawn registry resolution stalls or silent version drift (D3)
debounce rejection handling, process-level exception handlers (D4)
guarded scene.json parse during mid-save (D6)
bundle (D7)
Claude-Session: https://claude.ai/code/session_01Kzo6zwrn1CA79S4RN1dgsU
🤖 Generated with Claude Code
https://claude.ai/code/session_01Kzo6zwrn1CA79S4RN1dgsU
📚 Stack (splits #1505 — merge top-down within each stack)
Network layer (each PR is one self-contained, independently-green commit):
sdk-commands (independent of the stack above):
After a parent squash-merges, the child needs
git rebase --onto origin/auth-server <old-parent> <child>— ping the session and it gets restacked.