[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HHGW92NPFX7G6YMX9NSXD":3,"skill-same:01M78HHGW92NPFX7G6YMX9NSXD":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M78HHGW92NPFX7G6YMX9NSXD","chat-customizations-editor",null,"Use when working on the Chat Customizations editor — the management UI for agents, skills, instructions, hooks, prompts, MCP servers, and plugins.","Qtrick\u002Fprebasecode","Qtrick","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F141445503?v=4","01M78HD7H7KZCCZK56G86RHXHG","David Fan","01M78HD7J9D6W89KHEGD4BWBVN",0,"MIT","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fchat-customizations-editor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: chat-customizations-editor\ndescription: Use when working on the Chat Customizations editor — the management UI for agents, skills, instructions, hooks, prompts, MCP servers, and plugins.\nmetadata:\n  allowed-tools: Bash(npx @playwright\u002Fcli:*)\n---\n\n# Chat Customizations Editor\n\nSplit-view management pane for AI customization items across workspace, user, extension, and plugin storage. Supports harness-based filtering (Local, Copilot CLI, Claude).\n\n## Spec\n\n**`src\u002Fvs\u002Fsessions\u002FAI_CUSTOMIZATIONS.md`** — always read before making changes, always update after.\n\n## Key Folders\n\n| Folder | What |\n|--------|------|\n| `src\u002Fvs\u002Fworkbench\u002Fcontrib\u002Fchat\u002Fcommon\u002F` | `ICustomizationHarnessService`, `ISectionOverride`, `IStorageSourceFilter` — shared interfaces and filter helpers |\n| `src\u002Fvs\u002Fworkbench\u002Fcontrib\u002Fchat\u002Fbrowser\u002FaiCustomization\u002F` | Management editor, list widgets (prompts, MCP, plugins), harness service registration |\n| `src\u002Fvs\u002Fsessions\u002Fcontrib\u002Fchat\u002Fbrowser\u002F` | Sessions-window overrides (harness service, workspace service) |\n| `src\u002Fvs\u002Fsessions\u002Fcontrib\u002Fsessions\u002Fbrowser\u002F` | Sessions tree view counts and toolbar |\n\nWhen changing harness descriptor interfaces or factory functions, verify both core and sessions registrations compile.\n\n## Key Interfaces\n\n- **`IHarnessDescriptor`** — drives all UI behavior declaratively (hidden sections, button overrides, file filters, agent gating). See spec for full field reference.\n- **`ISectionOverride`** — per-section button customization (command invocation, root file creation, type labels, file extensions).\n- **`IStorageSourceFilter`** — controls which storage sources and user roots are visible per harness\u002Ftype.\n- **`IExternalCustomizationItemProvider`** \u002F **`IExternalCustomizationItem`** — internal interfaces (in `customizationHarnessService.ts`) for extension-contributed providers that supply items directly. These mirror the proposed extension API types.\n\nPrinciple: the UI widgets read everything from the descriptor — no harness-specific conditionals in widget code.\n\n## Extension API (`chatSessionCustomizationProvider`)\n\nThe proposed API in `src\u002Fvscode-dts\u002Fvscode.proposed.chatSessionCustomizationProvider.d.ts` lets extensions register customization providers. Changes to `IExternalCustomizationItem` or `IExternalCustomizationItemProvider` must be kept in sync across the full chain:\n\n| Layer | File | Type |\n|-------|------|------|\n| Extension API | `vscode.proposed.chatSessionCustomizationProvider.d.ts` | `ChatSessionCustomizationItem` |\n| IPC DTO | `extHost.protocol.ts` | `IChatSessionCustomizationItemDto` |\n| ExtHost mapping | `extHostChatAgents2.ts` | `$provideChatSessionCustomizations()` |\n| MainThread mapping | `mainThreadChatAgents2.ts` | `provideChatSessionCustomizations` callback |\n| Internal interface | `customizationHarnessService.ts` | `IExternalCustomizationItem` |\n\nWhen adding fields to `IExternalCustomizationItem`, update all five layers. The proposed API `.d.ts` is additive-only (new optional fields are backward-compatible and do not require a version bump).\n\n## Testing\n\nComponent explorer fixtures (see `component-fixtures` skill): `aiCustomizationListWidget.fixture.ts`, `aiCustomizationManagementEditor.fixture.ts` under `src\u002Fvs\u002Fworkbench\u002Ftest\u002Fbrowser\u002FcomponentFixtures\u002F`.\n\n### Screenshotting specific tabs\n\nThe management editor fixture supports a `selectedSection` option to render any tab. Each tab has Dark\u002FLight variants auto-generated by `defineThemedFixtureGroup`.\n\n**Available fixture IDs** (use with `mcp_component-exp_screenshot`):\n\n| Fixture ID pattern | Tab shown |\n|---|---|\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FAgentsTab\u002F{Dark,Light}` | Agents |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FSkillsTab\u002F{Dark,Light}` | Skills |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FInstructionsTab\u002F{Dark,Light}` | Instructions |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FHooksTab\u002F{Dark,Light}` | Hooks |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FPromptsTab\u002F{Dark,Light}` | Prompts |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FMcpServersTab\u002F{Dark,Light}` | MCP Servers |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FPluginsTab\u002F{Dark,Light}` | Plugins |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FLocalHarness\u002F{Dark,Light}` | Default (Agents, Local harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FCliHarness\u002F{Dark,Light}` | Default (Agents, CLI harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FClaudeHarness\u002F{Dark,Light}` | Default (Agents, Claude harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FSessions\u002F{Dark,Light}` | Sessions window variant |\n\n**Adding a new tab fixture:** Add a variant to the `defineThemedFixtureGroup` in `aiCustomizationManagementEditor.fixture.ts`:\n```typescript\nMyNewTab: defineComponentFixture({\n    labels: { kind: 'screenshot' },\n    render: ctx => renderEditor(ctx, {\n        harness: CustomizationHarness.VSCode,\n        selectedSection: AICustomizationManagementSection.MySection,\n    }),\n}),\n```\n\nThe `selectedSection` calls `editor.selectSectionById()` after `setInput`, which navigates to the specified tab and re-layouts.\n\n### Populating test data\n\nEach customization type requires its own mock path in `createMockPromptsService`:\n- **Agents** — `getCustomAgents()` returns agent objects\n- **Skills** — `findAgentSkills()` returns `IAgentSkill[]`\n- **Prompts** — `getPromptSlashCommands()` returns `IChatPromptSlashCommand[]`\n- **Instructions\u002FHooks** — `listPromptFiles()` filtered by `PromptsType`\n- **MCP Servers** — `mcpWorkspaceServers`\u002F`mcpUserServers` arrays passed to `IMcpWorkbenchService` mock\n- **Plugins** — `IPluginMarketplaceService.installedPlugins` and `IAgentPluginService.plugins` observables\n\nAll test data lives in `allFiles` (prompt-based items) and the `mcpWorkspace\u002FUserServers` arrays. Add enough items per category (8+) to invoke scrolling.\n\n### Exercising built-in grouping\n\nThe list widget regroups items from the default chat extension under a \"Built-in\" header. Three things must be in place for fixtures to exercise this:\n1. Include `BUILTIN_STORAGE` in the harness descriptor's visible sources\n2. Mock `IProductService.defaultChatAgent.chatExtensionId` (e.g., `'GitHub.copilot-chat'`)\n3. Give mock items extension provenance via `extensionId` \u002F `extensionDisplayName` matching that ID\n\nWithout all three, built-in regrouping silently doesn't run and the fixture only shows flat lists.\n\n### Editor contribution service mocks\n\nThe management editor embeds a `CodeEditorWidget`. Electron-side editor contributions (e.g., `AgentFeedbackEditorWidgetContribution`) are instantiated automatically and crash if their injected services aren't registered. The fixture must mock at minimum:\n- `IAgentFeedbackService` — needs `onDidChangeFeedback`, `onDidChangeNavigation`, `onDidAddFeedback`, `onDidConvertFeedback`, `onDidAddReply`, `onDidSubmitFeedback` as `Event.None`\n- `ICodeReviewService` — needs `getReviewState()` \u002F `getPRReviewState()` returning idle observables\n- `IChatEditingService` — needs `editingSessionsObs` as empty observable\n- `IAgentSessionsService` — needs `model.sessions` as empty array\n\nThese are cross-layer imports from `vs\u002Fsessions\u002F` — use `\u002F\u002F eslint-disable-next-line local\u002Fcode-import-patterns` on the import lines.\n\n### CI regression gates\n\nKey fixtures have `blocksCi: true` in their labels. The `component-fixtures.yml` GitHub Action captures screenshots on every PR to `main` and **fails the CI status check** if any `blocks-ci`-labeled fixture's screenshot changes. This catches layout regressions automatically.\n\nCurrently gated fixtures: `LocalHarness`, `McpServersTab`, `McpServersTabNarrow`, `AgentsTabNarrow`. When adding a new section or layout-critical fixture, add `blocksCi: true`:\n\n```typescript\nMyFixture: defineComponentFixture({\n    labels: { kind: 'screenshot', blocksCi: true },\n    render: ctx => renderEditor(ctx, { ... }),\n}),\n```\n\nDon't add `blocksCi` to every fixture — only ones that cover critical layout paths (default view, section with list + footer, narrow viewport). Too many gated fixtures creates noisy CI.\n\n### Screenshot stability\n\nScrollbar fade transitions cause screenshot instability — the scrollbar shifts from `visible` to `invisible fade` class ~2 seconds after a programmatic scroll. After calling `revealLastItem()` or any scroll action, wait for the transition to complete before the fixture's render promise resolves:\n\n```typescript\nawait new Promise(resolve => setTimeout(resolve, 2400));\n\u002F\u002F Then optionally poll until .scrollbar.vertical loses the 'visible' class\n```\n\n### Running unit tests\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"applyStorageSourceFilter|customizationCounts\"\nnpm run typecheck-client && npm run valid-layers-check\n```\n\nSee the `sessions` skill for sessions-window specific guidance.\n\n## Debugging Layout in the Real Product\n\nComponent fixtures use mock data and a fixed container size. Layout bugs caused by reflow timing, real data shapes, or narrow window sizes often **don't reproduce in fixtures**. When a user reports a broken layout, debug in the live Code OSS product.\n\nFor launching Code OSS with CDP and connecting `@playwright\u002Fcli`, see the **`launch` skill**. Use `--user-data-dir \u002Ftmp\u002Fcode-oss-debug` to avoid colliding with an already-running instance from another worktree.\n\n### Navigating to the customizations editor\n\nAfter connecting, use `snapshot` to find the \"Open Customizations\" button (in the Chat panel header), then click it. To switch sections, use `eval` with a DOM click since sidebar items aren't interactive refs:\n\n```bash\nnpx @playwright\u002Fcli eval \"(() => { const items = [...document.querySelectorAll('.section-list-item')]; items.find(el => el.textContent?.includes('MCP'))?.click(); })()\"\n```\n\n### Inspecting widget layout\n\n`@playwright\u002Fcli eval` wraps the expression in `() => (...)` — use an IIFE for multi-statement code. Use `document.title` as a return channel:\n\n```bash\nnpx @playwright\u002Fcli eval \"(() => { const w = document.querySelector('.mcp-list-widget'); \\\n  const lc = w?.querySelector('.mcp-list-container'); \\\n  const rows = lc?.querySelectorAll('.monaco-list-row'); \\\n  document.title = 'DBG:rows=' + (rows?.length ?? -1) \\\n    + ',listH=' + (lc?.offsetHeight ?? -1) \\\n    + ',seStH=' + (lc?.querySelector('.monaco-scrollable-element')?.style?.height ?? '') \\\n    + ',wH=' + (w?.offsetHeight ?? -1); })()\"\nnpx @playwright\u002Fcli eval \"document.title\" 2>&1\n```\n\nKey diagnostics:\n- **`rows`** — fewer than expected means `list.layout()` never received the correct viewport height.\n- **`seStH`** — empty means the list was never properly laid out.\n- **`listH` vs `wH`** — list container height should be widget height minus search bar minus footer.\n\n### Common layout issues\n\n| Symptom | Root cause | Fix pattern |\n|---------|-----------|-------------|\n| List shows 0-1 rows in a tall container | `layout()` bailed out because `offsetHeight` returned 0 during `display:none → visible` transition | Defer layout via `DOM.getWindow(this.element).requestAnimationFrame(...)` |\n| Badge or row content clips at right edge | Widget container missing `overflow: hidden` | Add `overflow: hidden` to the widget's CSS class |\n| Items visible in fixture but not in product | Fixture uses many mock items; real product has few | Add fixture variants with fewer items or narrower dimensions (`width`\u002F`height` options) |\n\n### Fixture vs real product gaps\n\nFixtures render at a fixed size (default 900×600) with many mock items. They won't catch:\n- **Reflow timing** — the real product's `display:none → visible` transition may not have reflowed before `layout()` fires\n- **Narrow windows** — add narrow fixture variants (e.g., `width: 550, height: 400`)\n- **Real data counts** — a user with 1 MCP server sees very different layout than a fixture with 12\n","# Chat Customizations Editor\n\nSplit-view management pane for AI customization items across workspace, user, extension, and plugin storage. Supports harness-based filtering (Local, Copilot CLI, Claude).\n\n## Spec\n\n**`src\u002Fvs\u002Fsessions\u002FAI_CUSTOMIZATIONS.md`** — always read before making changes, always update after.\n\n## Key Folders\n\n| Folder | What |\n|--------|------|\n| `src\u002Fvs\u002Fworkbench\u002Fcontrib\u002Fchat\u002Fcommon\u002F` | `ICustomizationHarnessService`, `ISectionOverride`, `IStorageSourceFilter` — shared interfaces and filter helpers |\n| `src\u002Fvs\u002Fworkbench\u002Fcontrib\u002Fchat\u002Fbrowser\u002FaiCustomization\u002F` | Management editor, list widgets (prompts, MCP, plugins), harness service registration |\n| `src\u002Fvs\u002Fsessions\u002Fcontrib\u002Fchat\u002Fbrowser\u002F` | Sessions-window overrides (harness service, workspace service) |\n| `src\u002Fvs\u002Fsessions\u002Fcontrib\u002Fsessions\u002Fbrowser\u002F` | Sessions tree view counts and toolbar |\n\nWhen changing harness descriptor interfaces or factory functions, verify both core and sessions registrations compile.\n\n## Key Interfaces\n\n- **`IHarnessDescriptor`** — drives all UI behavior declaratively (hidden sections, button overrides, file filters, agent gating). See spec for full field reference.\n- **`ISectionOverride`** — per-section button customization (command invocation, root file creation, type labels, file extensions).\n- **`IStorageSourceFilter`** — controls which storage sources and user roots are visible per harness\u002Ftype.\n- **`IExternalCustomizationItemProvider`** \u002F **`IExternalCustomizationItem`** — internal interfaces (in `customizationHarnessService.ts`) for extension-contributed providers that supply items directly. These mirror the proposed extension API types.\n\nPrinciple: the UI widgets read everything from the descriptor — no harness-specific conditionals in widget code.\n\n## Extension API (`chatSessionCustomizationProvider`)\n\nThe proposed API in `src\u002Fvscode-dts\u002Fvscode.proposed.chatSessionCustomizationProvider.d.ts` lets extensions register customization providers. Changes to `IExternalCustomizationItem` or `IExternalCustomizationItemProvider` must be kept in sync across the full chain:\n\n| Layer | File | Type |\n|-------|------|------|\n| Extension API | `vscode.proposed.chatSessionCustomizationProvider.d.ts` | `ChatSessionCustomizationItem` |\n| IPC DTO | `extHost.protocol.ts` | `IChatSessionCustomizationItemDto` |\n| ExtHost mapping | `extHostChatAgents2.ts` | `$provideChatSessionCustomizations()` |\n| MainThread mapping | `mainThreadChatAgents2.ts` | `provideChatSessionCustomizations` callback |\n| Internal interface | `customizationHarnessService.ts` | `IExternalCustomizationItem` |\n\nWhen adding fields to `IExternalCustomizationItem`, update all five layers. The proposed API `.d.ts` is additive-only (new optional fields are backward-compatible and do not require a version bump).\n\n## Testing\n\nComponent explorer fixtures (see `component-fixtures` skill): `aiCustomizationListWidget.fixture.ts`, `aiCustomizationManagementEditor.fixture.ts` under `src\u002Fvs\u002Fworkbench\u002Ftest\u002Fbrowser\u002FcomponentFixtures\u002F`.\n\n### Screenshotting specific tabs\n\nThe management editor fixture supports a `selectedSection` option to render any tab. Each tab has Dark\u002FLight variants auto-generated by `defineThemedFixtureGroup`.\n\n**Available fixture IDs** (use with `mcp_component-exp_screenshot`):\n\n| Fixture ID pattern | Tab shown |\n|---|---|\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FAgentsTab\u002F{Dark,Light}` | Agents |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FSkillsTab\u002F{Dark,Light}` | Skills |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FInstructionsTab\u002F{Dark,Light}` | Instructions |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FHooksTab\u002F{Dark,Light}` | Hooks |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FPromptsTab\u002F{Dark,Light}` | Prompts |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FMcpServersTab\u002F{Dark,Light}` | MCP Servers |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FPluginsTab\u002F{Dark,Light}` | Plugins |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FLocalHarness\u002F{Dark,Light}` | Default (Agents, Local harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FCliHarness\u002F{Dark,Light}` | Default (Agents, CLI harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FClaudeHarness\u002F{Dark,Light}` | Default (Agents, Claude harness) |\n| `chat\u002FaiCustomizations\u002FaiCustomizationManagementEditor\u002FSessions\u002F{Dark,Light}` | Sessions window variant |\n\n**Adding a new tab fixture:** Add a variant to the `defineThemedFixtureGroup` in `aiCustomizationManagementEditor.fixture.ts`:\n```typescript\nMyNewTab: defineComponentFixture({\n    labels: { kind: 'screenshot' },\n    render: ctx => renderEditor(ctx, {\n        harness: CustomizationHarness.VSCode,\n        selectedSection: AICustomizationManagementSection.MySection,\n    }),\n}),\n```\n\nThe `selectedSection` calls `editor.selectSectionById()` after `setInput`, which navigates to the specified tab and re-layouts.\n\n### Populating test data\n\nEach customization type requires its own mock path in `createMockPromptsService`:\n- **Agents** — `getCustomAgents()` returns agent objects\n- **Skills** — `findAgentSkills()` returns `IAgentSkill[]`\n- **Prompts** — `getPromptSlashCommands()` returns `IChatPromptSlashCommand[]`\n- **Instructions\u002FHooks** — `listPromptFiles()` filtered by `PromptsType`\n- **MCP Servers** — `mcpWorkspaceServers`\u002F`mcpUserServers` arrays passed to `IMcpWorkbenchService` mock\n- **Plugins** — `IPluginMarketplaceService.installedPlugins` and `IAgentPluginService.plugins` observables\n\nAll test data lives in `allFiles` (prompt-based items) and the `mcpWorkspace\u002FUserServers` arrays. Add enough items per category (8+) to invoke scrolling.\n\n### Exercising built-in grouping\n\nThe list widget regroups items from the default chat extension under a \"Built-in\" header. Three things must be in place for fixtures to exercise this:\n1. Include `BUILTIN_STORAGE` in the harness descriptor's visible sources\n2. Mock `IProductService.defaultChatAgent.chatExtensionId` (e.g., `'GitHub.copilot-chat'`)\n3. Give mock items extension provenance via `extensionId` \u002F `extensionDisplayName` matching that ID\n\nWithout all three, built-in regrouping silently doesn't run and the fixture only shows flat lists.\n\n### Editor contribution service mocks\n\nThe management editor embeds a `CodeEditorWidget`. Electron-side editor contributions (e.g., `AgentFeedbackEditorWidgetContribution`) are instantiated automatically and crash if their injected services aren't registered. The fixture must mock at minimum:\n- `IAgentFeedbackService` — needs `onDidChangeFeedback`, `onDidChangeNavigation`, `onDidAddFeedback`, `onDidConvertFeedback`, `onDidAddReply`, `onDidSubmitFeedback` as `Event.None`\n- `ICodeReviewService` — needs `getReviewState()` \u002F `getPRReviewState()` returning idle observables\n- `IChatEditingService` — needs `editingSessionsObs` as empty observable\n- `IAgentSessionsService` — needs `model.sessions` as empty array\n\nThese are cross-layer imports from `vs\u002Fsessions\u002F` — use `\u002F\u002F eslint-disable-next-line local\u002Fcode-import-patterns` on the import lines.\n\n### CI regression gates\n\nKey fixtures have `blocksCi: true` in their labels. The `component-fixtures.yml` GitHub Action captures screenshots on every PR to `main` and **fails the CI status check** if any `blocks-ci`-labeled fixture's screenshot changes. This catches layout regressions automatically.\n\nCurrently gated fixtures: `LocalHarness`, `McpServersTab`, `McpServersTabNarrow`, `AgentsTabNarrow`. When adding a new section or layout-critical fixture, add `blocksCi: true`:\n\n```typescript\nMyFixture: defineComponentFixture({\n    labels: { kind: 'screenshot', blocksCi: true },\n    render: ctx => renderEditor(ctx, { ... }),\n}),\n```\n\nDon't add `blocksCi` to every fixture — only ones that cover critical layout paths (default view, section with list + footer, narrow viewport). Too many gated fixtures creates noisy CI.\n\n### Screenshot stability\n\nScrollbar fade transitions cause screenshot instability — the scrollbar shifts from `visible` to `invisible fade` class ~2 seconds after a programmatic scroll. After calling `revealLastItem()` or any scroll action, wait for the transition to complete before the fixture's render promise resolves:\n\n```typescript\nawait new Promise(resolve => setTimeout(resolve, 2400));\n\u002F\u002F Then optionally poll until .scrollbar.vertical loses the 'visible' class\n```\n\n### Running unit tests\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"applyStorageSourceFilter|customizationCounts\"\nnpm run typecheck-client && npm run valid-layers-check\n```\n\nSee the `sessions` skill for sessions-window specific guidance.\n\n## Debugging Layout in the Real Product\n\nComponent fixtures use mock data and a fixed container size. Layout bugs caused by reflow timing, real data shapes, or narrow window sizes often **don't reproduce in fixtures**. When a user reports a broken layout, debug in the live Code OSS product.\n\nFor launching Code OSS with CDP and connecting `@playwright\u002Fcli`, see the **`launch` skill**. Use `--user-data-dir \u002Ftmp\u002Fcode-oss-debug` to avoid colliding with an already-running instance from another worktree.\n\n### Navigating to the customizations editor\n\nAfter connecting, use `snapshot` to find the \"Open Customizations\" button (in the Chat panel header), then click it. To switch sections, use `eval` with a DOM click since sidebar items aren't interactive refs:\n\n```bash\nnpx @playwright\u002Fcli eval \"(() => { const items = [...document.querySelectorAll('.section-list-item')]; items.find(el => el.textContent?.includes('MCP'))?.click(); })()\"\n```\n\n### Inspecting widget layout\n\n`@playwright\u002Fcli eval` wraps the expression in `() => (...)` — use an IIFE for multi-statement code. Use `document.title` as a return channel:\n\n```bash\nnpx @playwright\u002Fcli eval \"(() => { const w = document.querySelector('.mcp-list-widget'); \\\n  const lc = w?.querySelector('.mcp-list-container'); \\\n  const rows = lc?.querySelectorAll('.monaco-list-row'); \\\n  document.title = 'DBG:rows=' + (rows?.length ?? -1) \\\n    + ',listH=' + (lc?.offsetHeight ?? -1) \\\n    + ',seStH=' + (lc?.querySelector('.monaco-scrollable-element')?.style?.height ?? '') \\\n    + ',wH=' + (w?.offsetHeight ?? -1); })()\"\nnpx @playwright\u002Fcli eval \"document.title\" 2>&1\n```\n\nKey diagnostics:\n- **`rows`** — fewer than expected means `list.layout()` never received the correct viewport height.\n- **`seStH`** — empty means the list was never properly laid out.\n- **`listH` vs `wH`** — list container height should be widget height minus search bar minus footer.\n\n### Common layout issues\n\n| Symptom | Root cause | Fix pattern |\n|---------|-----------|-------------|\n| List shows 0-1 rows in a tall container | `layout()` bailed out because `offsetHeight` returned 0 during `display:none → visible` transition | Defer layout via `DOM.getWindow(this.element).requestAnimationFrame(...)` |\n| Badge or row content clips at right edge | Widget container missing `overflow: hidden` | Add `overflow: hidden` to the widget's CSS class |\n| Items visible in fixture but not in product | Fixture uses many mock items; real product has few | Add fixture variants with fewer items or narrower dimensions (`width`\u002F`height` options) |\n\n### Fixture vs real product gaps\n\nFixtures render at a fixed size (default 900×600) with many mock items. They won't catch:\n- **Reflow timing** — the real product's `display:none → visible` transition may not have reflowed before `layout()` fires\n- **Narrow windows** — add narrow fixture variants (e.g., `width: 550, height: 400`)\n- **Real data counts** — a user with 1 MCP server sees very different layout than a fixture with 12\n",{"name":5,"metadata":24,"description":7},{"allowed-tools":25},"Bash(npx @playwright\u002Fcli:*)","main","a87007e75a0e5632a49ac593bd7df9f4e8d57d38",".github\u002Fskills\u002Fchat-customizations-editor","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode","https:\u002F\u002Fgithub.com\u002FQtrick","2026-09-18 02:39:35",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Qtrick\u002Fprebasecode --skill chat-customizations-editor",{"tool":38,"command":39},"bunx","bunx skills add Qtrick\u002Fprebasecode --skill chat-customizations-editor",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Qtrick\u002Fprebasecode --skill chat-customizations-editor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fchat-customizations-editor\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M78HRHDZJD3512KSR0GZPJ57","review","Review skill with nested metadata","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-skill-meta\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M78HRG98D7PY73KG63XAK5H6","ui-ux-pro-max","UI UX Pro Max design guidance","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.opencode\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M78HRFBCY0MBYVQ0HRXSV5GX","deploy","Deploy skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.codex\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M78HRE6JKXTMJN9DHCF487YD","interop","Interoperable Agent Skill for live smoke","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.agents\u002Fskills\u002Finterop\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M78HRCTZENSGRPZX2N148VDD","ship","Devin ship skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.devin\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M78HRBVY4KCF8ZRJ2M8RYFRD","lint","Codeium lint skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.codeium\u002Fskills\u002Flint\u002FSKILL.md",[],[]]