@@ -9116,7 +9116,16 @@ suite('ClaudeAgent — Phase 11 customizations', () => {
91169116 // always present pre-materialize for discoverability (before a live SDK
91179117 // set exists): the built-in agents directory and the "Built-in" skills
91189118 // container.
9119- assert.deepStrictEqual(customizations.map(c => c.uri), ['https://a', 'file:///mock-home/.claude/agents', 'agent-builtin:/skills']);
9119+ assert.deepStrictEqual(customizations.map(c => c.uri), [
9120+ 'https://a',
9121+ 'file:///work/.claude/agents',
9122+ 'file:///work/.claude/skills',
9123+ 'file:///work/.claude/rules',
9124+ 'file:///mock-home/.claude/agents',
9125+ 'file:///mock-home/.claude/skills',
9126+ 'file:///mock-home/.claude/rules',
9127+ 'agent-builtin:/skills',
9128+ ]);
91209129 });
91219130
91229131 test('getChatCustomizations overlays the enablement state onto client-pushed entries', async () => {
@@ -9346,7 +9355,16 @@ suite('ClaudeAgent — Phase 11 customizations', () => {
93469355 // the client-pushed entry survives (UI not blanked) and the curated
93479356 // built-ins are appended (the built-in agents directory and the skills
93489357 // container) since there is no live set to derive from.
9349- assert.deepStrictEqual(customizations.map(c => c.uri), ['https://a', 'file:///mock-home/.claude/agents', 'agent-builtin:/skills'], 'client-pushed projection survives SDK snapshot failure');
9358+ assert.deepStrictEqual(customizations.map(c => c.uri), [
9359+ 'https://a',
9360+ 'file:///work/.claude/agents',
9361+ 'file:///work/.claude/skills',
9362+ 'file:///work/.claude/rules',
9363+ 'file:///mock-home/.claude/agents',
9364+ 'file:///mock-home/.claude/skills',
9365+ 'file:///mock-home/.claude/rules',
9366+ 'agent-builtin:/skills',
9367+ ], 'client-pushed projection survives SDK snapshot failure');
93509368 });
93519369
93529370 test('getChatCustomizations derives the Built-in container from the live SDK command set post-materialize', async () => {
@@ -9368,8 +9386,8 @@ suite('ClaudeAgent — Phase 11 customizations', () => {
93689386 await agent.chats.sendMessage(defaultChatUri(created.session), 'first', undefined, undefined, 'turn-1', undefined, undefined, chatContext(defaultChatUri(created.session)));
93699387
93709388 const customizations = await agent.getChatCustomizations!(defaultChatUri(created.session), chatContext(defaultChatUri(created.session)), hostCustomizations(stateManager, created.session));
9371- assert.strictEqual(customizations.length, 1 );
9372- const container = customizations[0] ;
9389+ const container = customizations.find(customization => customization.uri === 'agent-builtin:/skills' );
9390+ assert.ok( container) ;
93739391 assert.strictEqual(container.type, CustomizationType.Directory);
93749392 assert.strictEqual(container.uri, 'agent-builtin:/skills');
93759393
0 commit comments