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: preserve saved aliases and legacy asset provenance (#6275)

[._.]/ Adam Eivy69074991506b
diff --git a/client/src/pages/Eidoverse.jsx b/client/src/pages/Eidoverse.jsx
index 0115579878..4384f8df04 100644
--- a/client/src/pages/Eidoverse.jsx
+++ b/client/src/pages/Eidoverse.jsx
@@ -260,6 +260,7 @@ export default function Eidoverse() {
setHumanName(result.world?.identity?.name || result.world?.human?.name || '');
setRecipeDraft(result.world?.recipe || null);
setAssetOverridesDraft(result.world?.design?.userOverrides?.assets || {});
+ setLabelAliasesDraft(result.world?.design?.labelAliases || {});
setHostUrl(result.hostUrl || '');
}, (reason) => {
if (!isCurrent()) return;
diff --git a/client/src/pages/Eidoverse.test.jsx b/client/src/pages/Eidoverse.test.jsx
index 3fd164504c..b4fd9c2d0e 100644
--- a/client/src/pages/Eidoverse.test.jsx
+++ b/client/src/pages/Eidoverse.test.jsx
@@ -208,6 +208,24 @@ describe('Eidoverse hosted page', () => {
));
});
+ it('preserves saved aliases when the initial projection fails and another setting is saved', async () => {
+ const user = userEvent.setup();
+ const labelAliases = { 'app-0123456789ab': 'Example saved tower' };
+ api.getEidoverseWorldStatus.mockResolvedValueOnce({
+ ...worldResponse, design: { ...design, labelAliases },
+ });
+ api.projectEidoverseWorld.mockRejectedValueOnce(new Error('Example initial projection failure'));
+ renderPage();
+ await screen.findByTitle('Eidoverse Worlds');
+ await user.click(screen.getByRole('button', { name: 'World controls' }));
+ expect(await screen.findByText('Example initial projection failure')).toBeInTheDocument();
+ await user.type(screen.getByLabelText('My Eidoverse name'), '-edited');
+ await user.click(screen.getByRole('button', { name: 'Save and project' }));
+ await waitFor(() => expect(api.updateEidoverseWorldConfig).toHaveBeenCalledWith(
+ expect.objectContaining({ labelAliases, humanName: 'example-portos-user-edited' }), { silent: true },
+ ));
+ });
+
it('shows a renderer update link while preserving the saved recipe on older clients', async () => {
const user = userEvent.setup();
const oldDesign = { ...design, reconciliation: { ...design.reconciliation,
diff --git a/server/services/eidoverseWorld.js b/server/services/eidoverseWorld.js
index ac9297b131..7e98aa5fde 100644
--- a/server/services/eidoverseWorld.js
+++ b/server/services/eidoverseWorld.js
@@ -1650,7 +1650,13 @@ export async function projectEidoverseWorld({ signal } = {}) {
source,
recipe: lockedConfig.recipe,
labelAliases: lockedConfig.design.labelAliases,
- assetResolutions: lockedConfig.design.assetResolutions,
+ assetResolutions: {
+ ...lockedConfig.design.assetResolutions,
+ // Preflight verifies legacy kind overrides too, even though only the
+ // semantic slots have durable resolution locks.
+ ...Object.fromEntries(Object.entries(lockedConfig.design.userOverrides?.assets || {})
+ .map(([slot, path]) => [slot, { path, userOverride: true }])),
+ },
currentState: presence.snapshot?.state || {},
meta: { title: lockedConfig.design.name, hostId },
});
diff --git a/server/services/eidoverseWorld.runtime.test.js b/server/services/eidoverseWorld.runtime.test.js
index 3dc688f5fc..3bb7585efd 100644
--- a/server/services/eidoverseWorld.runtime.test.js
+++ b/server/services/eidoverseWorld.runtime.test.js
@@ -913,8 +913,10 @@ describe('Eidoverse private-world lifecycle', () => {
});
});
- it('verifies and records an explicit install-local store override', async () => {
- await world.updateEidoverseWorldConfig({ assetOverrides: { app: 'store/example-local-asset' } });
+ it('verifies semantic and legacy store overrides and explains their provenance in the legend', async () => {
+ await world.updateEidoverseWorldConfig({ assetOverrides: {
+ app: 'store/example-local-asset', operations: 'store/example-legacy-operations',
+ } });
const result = await world.projectEidoverseWorld();
@@ -924,6 +926,9 @@ describe('Eidoverse private-world lifecycle', () => {
shippedDefault: false,
});
expect(fetch.mock.calls.some(([input]) => String(input).includes('/library/store/example-local-asset'))).toBe(true);
+ expect(fetch.mock.calls.some(([input]) => String(input).includes('/library/store/example-legacy-operations'))).toBe(true);
+ expect(result.summary.objects.find(({ kind, districtId }) => kind === 'district' && districtId === 'nexus')?.asset)
+ .toEqual({ path: 'store/example-legacy-operations', slot: 'operations', reason: 'user-override' });
});
it('resets only the selected district asset lock and override', async () => {