mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 03:36:53 +00:00
gateway: fix global Control UI 404s for symlinked wrappers and bundled package roots (#40385)
Merged via squash.
Prepared head SHA: 567b3ed684
Co-authored-by: velvet-shark <126378+velvet-shark@users.noreply.github.com>
Co-authored-by: velvet-shark <126378+velvet-shark@users.noreply.github.com>
Reviewed-by: @velvet-shark
This commit is contained in:
committed by
GitHub
parent
13bd3db307
commit
4f42c03a49
@@ -24,6 +24,7 @@ import { resolveMainSessionKey } from "../config/sessions.js";
|
||||
import { clearAgentRunContext, onAgentEvent } from "../infra/agent-events.js";
|
||||
import {
|
||||
ensureControlUiAssetsBuilt,
|
||||
isPackageProvenControlUiRootSync,
|
||||
resolveControlUiRootOverrideSync,
|
||||
resolveControlUiRootSync,
|
||||
} from "../infra/control-ui-assets.js";
|
||||
@@ -545,7 +546,16 @@ export async function startGatewayServer(
|
||||
});
|
||||
}
|
||||
controlUiRootState = resolvedRoot
|
||||
? { kind: "resolved", path: resolvedRoot }
|
||||
? {
|
||||
kind: isPackageProvenControlUiRootSync(resolvedRoot, {
|
||||
moduleUrl: import.meta.url,
|
||||
argv1: process.argv[1],
|
||||
cwd: process.cwd(),
|
||||
})
|
||||
? "bundled"
|
||||
: "resolved",
|
||||
path: resolvedRoot,
|
||||
}
|
||||
: { kind: "missing" };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user