The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): cover the live empty slash query
brooklyn!20b76aac4924
diff --git a/apps/desktop/src/app/chat/composer/composer-utils.test.ts b/apps/desktop/src/app/chat/composer/composer-utils.test.tsindex 7e5ae99c96e..bde30003924 100644--- a/apps/desktop/src/app/chat/composer/composer-utils.test.ts+++ b/apps/desktop/src/app/chat/composer/composer-utils.test.ts@@ -140,10 +140,13 @@ describe('implicitSlashAcceptIndex', () => {it('honours an arrowed pick on a bare `/` query', () => {expect(implicitSlashAcceptIndex('/', rows, 1, true)).toBe(1)expect(implicitSlashAcceptIndex('/', rows, 2, true)).toBe(2)+ // detectTrigger('/') yields query '', not '/'. Same empty token, same pick.+ expect(implicitSlashAcceptIndex('', rows, 1, true)).toBe(1)})it('still returns null on a bare `/` with no arrow-key selection', () => {expect(implicitSlashAcceptIndex('/', rows, 0, false)).toBeNull()+ expect(implicitSlashAcceptIndex('', rows, 0, false)).toBeNull()})it('matches an arg-stage prefix against the full completion text', () => {