fix: drop the em dash from user-facing copy
Anti-slop audit-002, item 13 (R-02). Every em dash in text the user sees (web UI labels, toasts, tooltips, empty and error states, chat steps, API messages, notifications and channel replies) became a period, comma, colon or parentheses. Model prompts, logs, comments, regexes and the lone dash that marks an empty value are unchanged. Text the client matches against server copy (the default workspace summary, the quiet-night dream summary) accepts the old wording too, so cached and saved data still match.
This commit is contained in:
@@ -124,6 +124,16 @@ describe('DreamJournal record + persistence', () => {
|
||||
expect(j.read('2026-07-09')?.events).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('reads a quiet night saved with the older wording as the current summary', () => {
|
||||
fs.mkdirSync(path.join(dir, 'dreams'), { recursive: true });
|
||||
fs.writeFileSync(
|
||||
path.join(dir, 'dreams', '2026-07-09.json'),
|
||||
JSON.stringify({ date: '2026-07-09', events: [], summary: 'A quiet night — your memory was already tidy.' }),
|
||||
'utf8',
|
||||
);
|
||||
expect(new DreamJournal(dir).read('2026-07-09')?.summary).toBe(QUIET_NIGHT_SUMMARY);
|
||||
});
|
||||
|
||||
it('survives a corrupt day file by treating it as absent', () => {
|
||||
fs.mkdirSync(path.join(dir, 'dreams'), { recursive: true });
|
||||
fs.writeFileSync(path.join(dir, 'dreams', '2026-07-09.json'), '{nope', 'utf8');
|
||||
|
||||
Reference in New Issue
Block a user