Repository navigation
v0.13.1: fix Restart/Update/Quit with skill embeds + bug fixes - #13
Merged
Merged
Conversation
When proxied_skill_embeds is on, the same-document embed fetch shim
rewrote Settings → Restart/Update/Quit onto /embed/{ce|okstratr}/api/*,
so okstratr/CE answered 404 {"error":"not found"} as a red toast.
Keep those control-plane paths on the Switchbay daemon.
Signed-off-by: benjsmith <[email protected]>
Restart/Update/Quit were the visible tip of the same bug: while a Graph or Agents embed fetch shim is installed, many other shell/Settings paths (/api/fs, /api/runs, /api/okstratr/harness, /api/easter, …) were still rewritten onto /embed/* and 404'd. Expand SWITCHBAY_API_RESERVED_PREFIXES to cover Switchbay-owned daemon prefixes; leave CE /api/page and okstratr /api/desk/* remappable. Also skip mountSidebar when the sidebar slot is disconnected or missing #sidebar. Signed-off-by: benjsmith <[email protected]>
Micro release for the embed reserved-API and Restart/Update/Quit fixes. Signed-off-by: benjsmith <[email protected]>
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
Micro bump to 0.13.1.
When proxied Graph/Agents embeds are open, the same-document fetch shim was rewriting Switchbay control-plane calls onto
/embed/{ce|okstratr}/api/*. Settings → Restart/Update/Quit came back as a red "not found" toast. Those paths (and the other Switchbay-owned/api/*prefixes the shell and Settings call) now stay on the Switchbay daemon. CE/api/pageand okstratr/api/desk/*remain remappable.Also skip
mountSidebarwhen the sidebar slot is disconnected or missing#sidebar.Changes
/api/*prefixes) from the embed fetch shimmountSidebarremountpyproject.toml,__version__,frontend/package.json,uv.lock, CHANGELOGTest plan
pnpm exec tsx --testembedMount (+ other frontend unit tests): 27 passpytestversion_sync + embed_proxypnpm run build(tsc + vite) producesfrontend/dist