Repository navigation
Fix Organization livez gate and Studio-style openXYOS restart overlay - #53
Merged
Merged
Conversation
Probe sidecar livez before loading the local test iframe so a down frontend/backend surfaces a restart CTA instead of Failed to fetch. Restart now shows an XYAI Studio-style progress card with advancing steps and still stops/starts the real FreeOS openXYOS node. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Keep chrome buttons from submitting the URL form, update the address from tab history inside the state updater, and apply Prettier to the Studio restart overlay. Co-authored-by: XYAI Labs <haoboy8@gmail.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.
Summary
When local openXYOS frontend/backend are down, Organization no longer loads the login iframe (which produced a bare Failed to fetch). Opening the local test page now probes
livezfirst and asks the user to click 重启前后端服务.Restart uses an XYAI Studio-style progress card: mascot + speech bubble, spinner, title「正在重启前后端服务」, and a checklist that advances (stop old process → prefer full local layout → start API+page → wait port → load login). The existing
restart_sidecarpath still actually stops and starts the FreeOS openXYOS node (top-level live cwd /start-sidecar). After livez is OK, the embedded browser returns to the local test home.Target branch
mainType of change
Test plan
npx vitest run src/pages/Organization src/layouts/sidebarNav.test.ts— 49 passedcd dashboard && npx tsc --noEmituv run pytest tests/unit/test_org_module.py tests/unit/test_sidecar_launch.py tests/unit/desktop/test_nsis_uninstall.py— 58 passedmake allnot run in this environment (dashboardnode_modulesand Python headers had to be installed ad hoc)Checklist
CHANGELOG.mdDo not merge.