Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: repair merged test inventory for remote desktop gate (#10923)

Adam Eivy6091da2c103a
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.js
index b9a2b8d8c3..a25a1df275 100644
--- a/server/lib/hostControlRoutes.js
+++ b/server/lib/hostControlRoutes.js
@@ -136,6 +136,7 @@ export const HOST_CONTROL_ROUTES = Object.freeze([
// 20 minutes each (#10922).
'POST /api/rigging/models/:id',
'POST /api/rigging/models/:id/retarget',
+
// A remote desktop session token proxies interactive mouse/keyboard/screen
// control of the host desktop; a peer's Basic credential must not mint one (#10923).
'POST /api/remote-desktop/sessions',
diff --git a/server/lib/hostControlRoutes.test.js b/server/lib/hostControlRoutes.test.js
index c7163b4de6..c781676d71 100644
--- a/server/lib/hostControlRoutes.test.js
+++ b/server/lib/hostControlRoutes.test.js
@@ -612,6 +612,23 @@ describe('3D model rigging host-workers (#10922)', () => {
const protectedRoutes = [
'POST /api/rigging/models/:id',
'POST /api/rigging/models/:id/retarget',
+ ];
+
+ it('gates each route and maps every entry to a mounted route', () => {
+ const mounted = new Set(getApiRouteCatalog().routes.map(({ method, path }) => method + ' ' + path));
+ for (const route of protectedRoutes) {
+ const [method, path] = route.split(' ');
+ expect(mounted.has(route), route).toBe(true);
+ expect(hostControlRouteFor(method, path), route).toBe(route);
+ }
+ });
+
+ it('keeps reads open', () => {
+ for (const [method, path] of [
+ ['GET', '/api/rigging/models/:id'],
+ ]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
+ });
+});
describe('Remote desktop session policy (#10923)', () => {
const protectedRoutes = [
@@ -629,8 +646,6 @@ describe('Remote desktop session policy (#10923)', () => {
it('keeps reads open', () => {
for (const [method, path] of [
- ['GET', '/api/rigging/models/:id'],
-
['GET', '/api/remote-desktop/status'],
]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
});