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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): redact nested home usernames
[._.]/ Adam Eivy665180a3032a
diff --git a/server/lib/workspaceRoots.js b/server/lib/workspaceRoots.jsindex 85dbb88670..10ac8cb503 100644--- a/server/lib/workspaceRoots.js+++ b/server/lib/workspaceRoots.js@@ -155,7 +155,7 @@ const formatLogPath = (value) => {if (isWindowsStylePath) return redactPrivatePath(redactedUncPath);const relativeHomePath = relative(HOME_ROOT, path);if (relativeHomePath && !relativeHomePath.startsWith('..') && !isAbsolute(relativeHomePath)) {- return `~/${relativeHomePath}`;+ return `~/${redactPrivatePath(relativeHomePath)}`;}return redactPrivatePath(redactedUncPath);};diff --git a/server/lib/workspaceRoots.test.js b/server/lib/workspaceRoots.test.jsindex bd26cacea8..ea3afb8332 100644--- a/server/lib/workspaceRoots.test.js+++ b/server/lib/workspaceRoots.test.js@@ -77,6 +77,14 @@ describe('outsideAllowedRootsMessage', () => {expect(message).not.toContain(username);});+ it('redacts the current username in nested home-directory segments', () => {+ const username = basename(homedir());+ const message = outsideAllowedRootsMessage(join(homedir(), 'nested', username, 'repo'));++ expect(message).toContain('~/nested/<user>/repo');+ expect(message).not.toContain(username);+ });+it('redacts hosts in UNC paths', () => {const message = outsideAllowedRootsMessage(String.raw`\\server\share\repo`);