The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): keep archive instructions aligned with row gestures
brooklyn!3f06838e04fd
diff --git a/apps/desktop/src/app/chat/sidebar/archive-copy.test.ts b/apps/desktop/src/app/chat/sidebar/archive-copy.test.tsnew file mode 100644index 00000000000..8c214c5fe5e--- /dev/null+++ b/apps/desktop/src/app/chat/sidebar/archive-copy.test.ts@@ -0,0 +1,23 @@+import { describe, expect, it } from 'vitest'++import { TRANSLATIONS } from '@/i18n/catalog'++import { resolveSessionRowClick } from './session-row-gesture'++describe('archived-session instructions', () => {+ it('advertises modifiers that archive rather than open a tab in every locale', () => {+ for (const [locale, copy] of Object.entries(TRANSLATIONS)) {+ const intro = copy.settings.sessions.archivedIntro++ const modifiers = {+ altKey: /Alt|Option|⌥/.test(intro),+ shiftKey: /Shift|⇧/.test(intro),+ ctrlKey: /Ctrl|⌃/.test(intro),+ metaKey: /⌘/.test(intro)+ }++ expect(resolveSessionRowClick(modifiers, { canOpenWindow: true }), locale).toBe('archive')+ expect(resolveSessionRowClick(modifiers, { canOpenWindow: false }), locale).toBe('archive')+ }+ })+})