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 (self): harden import-asset filename guard, pin CopyableId a11y, log city throttle
[._.]/ Adam Eivyb1c51b6f3c23
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 727bbe673d..7442abb287 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -91,6 +91,8 @@## Changed+- **CyberCity now eases into full quality so the first second of startup doesn't drop frames.** Mounting the 3D city used to render every district at the full quality preset on frame one — reflections, full particle density, and the high-DPR pixel ratio all at once — which spiked the GPU and stuttered the opening camera move. The scene now renders a deliberately lightened first pass (reflections off, particle density capped, `dpr` pinned to `[1, 1]`) for ~1.2s, then restores your real settings once startup has settled. Photo mode is exempt (it needs full fidelity immediately). The same settle also re-runs when the app count changes, since that reshuffles building layout — another heavy frame worth easing into. (`client/src/components/city/CityScene.jsx`)+- **[issue-1364] Generating a D&D character avatar now persists in one round-trip.** The character-sheet "Generate avatar" flow used to render the image and then make a *second* call to save the path onto your character. Since the avatar route already knows the character context, it now persists the rendered `avatarPath` itself when asked (`persistToCharacter`), so the client drops the follow-up `PUT /api/character` and keeps its optimistic update — same result, one fewer request. (`server/routes/imageGen.js`, `server/services/character.js`, `client/src/pages/CharacterSheet.jsx`, #1364)- **[issue-1291] The character-name confusability check now catches look-alikes *and* sound-alikes, reads aliases, and respects locked characters.** The "Character name dissimilarity" editorial check used to compare only spelling traits — shared first letter, length, vowel pattern, opening, or ending. It now also flags names that are a near-typo apart (edit distance, e.g. *Alina* / *Alana*) or that simply *sound alike* (a phonetic match, e.g. *Smith* / *Smyth*, *Sam* / *Sun*), compares each character's **aliases** as well as their primary name, and adds a **first-letter crowding** finding when too much of the cast starts with the same letter (scaled to cast size — two M-names in a cast of thirty is fine, four of six is not). Severity now scales with how confusable a pair really is, near-identical names rank highest, and every suggestion steers you to rename an **unlocked** character (and tells you when both are locked). New per-check knobs let you tune the edit-distance threshold, the crowding ratio, and toggle the length/vowel/phonetic signals individually. (#1291)diff --git a/client/src/components/ui/CopyableId.test.jsx b/client/src/components/ui/CopyableId.test.jsxindex 472a9caf02..ac532b4c02 100644--- a/client/src/components/ui/CopyableId.test.jsx+++ b/client/src/components/ui/CopyableId.test.jsx@@ -24,6 +24,14 @@ describe('CopyableId', () => {expect(copyToClipboard).toHaveBeenCalledWith('abcdef1234567890', 'ID copied');});+ it('exposes the FULL id via title tooltip and aria-label (the documented way to read it)', () => {+ render(<CopyableId id="abcdef1234567890" />);+ // The visible text is truncated, but both the tooltip and the screen-reader+ // label must carry the full id — that is the component's stated contract.+ expect(screen.getByTitle('Copy id: abcdef1234567890')).toBeTruthy();+ expect(screen.getByLabelText('Copy id abcdef1234567890')).toBeTruthy();+ });+it('does not truncate an id shorter than the char window', () => {render(<CopyableId id="short" chars={8} />);expect(screen.getByText('short')).toBeTruthy();diff --git a/server/services/chatgptImport.js b/server/services/chatgptImport.jsindex 8f3cb88edc..af89cfbf0d 100644--- a/server/services/chatgptImport.js+++ b/server/services/chatgptImport.js@@ -336,8 +336,13 @@ export const extractAssetFileNames = (content) => {let m;while ((m = re.exec(content)) !== null) {const name = m[1].replace(/[).,]+$/, '');- // Flat basename only — never a path that could escape the assets dir.- if (name && !name.includes('/') && !name.includes('\\') && !name.includes('..')) {+ // Served asset names are `<assetId><ext>` — both restricted to this flat+ // charset (see chatgptZipImport.js: datAssetId + the extension allowlist).+ // Anchoring to it is a strict superset of the path-traversal guard: it+ // rejects `/`, `\`, `..`, null bytes, and stray query-string/punctuation+ // matches that can never name a real on-disk asset, so a crafted link can't+ // produce a name we'd hand to unlink().+ if (/^[a-zA-Z0-9._-]+$/.test(name)) {names.add(name);}}