From 4b7e13bbf54e8bb9bd35ca974076a3c115d61ac6 Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Sun, 6 Sep 2026 17:48:49 -0700 Subject: [PATCH] test: verify unclassified catalogs survive session publication --- .../structured-agent-session-command-publication.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/native-chat/agent-session-wire/structured-agent-session-command-publication.test.ts b/src/main/native-chat/agent-session-wire/structured-agent-session-command-publication.test.ts index db86bf367e3..705baf182fa 100644 --- a/src/main/native-chat/agent-session-wire/structured-agent-session-command-publication.test.ts +++ b/src/main/native-chat/agent-session-wire/structured-agent-session-command-publication.test.ts @@ -43,7 +43,7 @@ it('publishes idle provider reloads only when the actual command catalog changes } claude.connections[0].handlers.onMessage?.(message) expect(adapter.readCommands(identityFor().sessionId)).toEqual([ - { name: 'new-skill', kind: 'skill' } + { name: 'new-skill', kind: 'command', kindUnspecified: true } ]) expect(publish).toHaveBeenCalledTimes(1) claude.connections[0].handlers.onMessage?.(message) @@ -62,7 +62,9 @@ it('delivers catalog changes through existing frames without resending them on o try { const journal = await journals.open({ identity: identityFor(), journalDir: root }) const sessionId = identityFor().sessionId - let commands: AgentSessionSlashCommand[] | undefined = [{ name: 'loaded', kind: 'skill' }] + let commands: AgentSessionSlashCommand[] | undefined = [ + { name: 'loaded', kind: 'command', kindUnspecified: true } + ] const subscribers = new AgentSessionSubscribers({ readCommands: () => commands }) const close = subscribers.open({ id: 'one',