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: keep legacy identity prose out of chosen names

[._.]/ Adam Eivy6cf4c6dfad66
diff --git a/server/lib/persistentMindChosenName.js b/server/lib/persistentMindChosenName.js
index 13055a3766..e565e8cbf3 100644
--- a/server/lib/persistentMindChosenName.js
+++ b/server/lib/persistentMindChosenName.js
@@ -35,7 +35,7 @@ const RESERVED = new Set(['world', '*']);
*/
export function extractPersistentMindChosenName(text) {
if (typeof text !== 'string' || !text.trim()) return null;
- const exact = text.trim().match(/^My chosen name is (.+?)\.?$/iu)?.[1];
+ const exact = text.trim().match(/^My chosen name is ([^.!?;\r\n]+)\.?$/iu)?.[1];
if (exact && !RESERVED.has(exact.toLowerCase()) && persistentMindChosenNameSchema.safeParse(exact).success) return exact;
for (const pattern of CHOSEN_NAME_PATTERNS) {
const match = text.match(pattern);
diff --git a/server/lib/persistentMindChosenName.test.js b/server/lib/persistentMindChosenName.test.js
index 62ca315bb5..2d6dda899d 100644
--- a/server/lib/persistentMindChosenName.test.js
+++ b/server/lib/persistentMindChosenName.test.js
@@ -7,6 +7,8 @@ import {
describe('extractPersistentMindChosenName', () => {
it('reads common chosen-name phrasings', () => {
expect(extractPersistentMindChosenName('My chosen name is Helm.')).toBe('Helm');
+ expect(extractPersistentMindChosenName('My chosen name is Helm. I keep my commitments.')).toBe('Helm');
+ expect(extractPersistentMindChosenName('My chosen name is Étoile Bleue.')).toBe('Étoile Bleue');
expect(extractPersistentMindChosenName('I am named Aster')).toBe('Aster');
expect(extractPersistentMindChosenName("I'm named Nova-2")).toBe('Nova-2');
expect(extractPersistentMindChosenName('My name is Port_OS')).toBe('Port_OS');