Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Show all Assistant slash commands
rcourtman6eb51aab869d
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex db6eaf7c32..7eccbc95cc 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -358,6 +358,18 @@ runtime cost control, and shared AI transport surfaces.such as New session, session history, collapse/close, autonomous-warningrecovery, and the control-mode selector instead of depending on title-onlyicon controls or ambiguous short labels.+ The slash command autocomplete is a command-discovery surface, not just a+ text shortcut hint. The referenced OpenCode source at fetched `origin/dev`+ commit `e82542b8023a8374f29c23b70ec019c8f256354e` advertises session+ commands such as `/models`, `/new`, `/sessions`, `/compact`, `/export`, and+ `/connect` in `packages/tui/src/feature-plugins/home/tips-view.tsx` lines+ 179-192, while each command registration carries a command title, category,+ and slash metadata in `packages/tui/src/routes/session/index.tsx` (for+ `/compact`, lines 548-570). Pulse adapts that by showing the full local+ Assistant command set in the scrollable slash list instead of silently+ capping discovery to the first few commands, and every listed command row+ must carry a matching icon so `/compact`, `/undo`, `/redo`, and other+ lower-frequency actions do not appear as unfinished blank rows.Slash autocomplete close semantics are owned by that same prompt commandsurface. The referenced OpenCode source at fetched `origin/dev` commit`4519a1da329c1a4fc384054e7203ba7d06928205` clears a transient slashdiff --git a/frontend-modern/src/components/AI/Chat/SlashCommandAutocomplete.tsx b/frontend-modern/src/components/AI/Chat/SlashCommandAutocomplete.tsxindex 01957ac6ad..d83012639e 100644--- a/frontend-modern/src/components/AI/Chat/SlashCommandAutocomplete.tsx+++ b/frontend-modern/src/components/AI/Chat/SlashCommandAutocomplete.tsx@@ -5,6 +5,7 @@ import CopyIcon from 'lucide-solid/icons/copy';import DownloadIcon from 'lucide-solid/icons/download';import GitForkIcon from 'lucide-solid/icons/git-fork';import KeyRoundIcon from 'lucide-solid/icons/key-round';+import Minimize2Icon from 'lucide-solid/icons/minimize-2';import PlusIcon from 'lucide-solid/icons/plus';import Redo2Icon from 'lucide-solid/icons/redo-2';import SettingsIcon from 'lucide-solid/icons/settings';@@ -32,6 +33,8 @@ export const AssistantSlashCommandIcon = (props: { action: AssistantSlashCommandreturn <PlusIcon class="h-4 w-4" aria-hidden="true" />;case 'sessions':return <ClockIcon class="h-4 w-4" aria-hidden="true" />;+ case 'compact':+ return <Minimize2Icon class="h-4 w-4" aria-hidden="true" />;case 'models':return <SettingsIcon class="h-4 w-4" aria-hidden="true" />;case 'providers':@@ -53,7 +56,7 @@ export const AssistantSlashCommandIcon = (props: { action: AssistantSlashCommandexport function SlashCommandAutocomplete(props: SlashCommandAutocompleteProps) {const [selectedIndex, setSelectedIndex] = createSignal(0);- const commands = createMemo(() => filterAssistantSlashCommands(props.query, 8));+ const commands = createMemo(() => filterAssistantSlashCommands(props.query));createEffect(() => {props.query;diff --git a/frontend-modern/src/components/AI/Chat/__tests__/SlashCommandAutocomplete.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/SlashCommandAutocomplete.test.tsxindex 7e5e871e28..a08d8d1948 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/SlashCommandAutocomplete.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/SlashCommandAutocomplete.test.tsx@@ -1,5 +1,6 @@import { afterEach, describe, expect, it, vi } from 'vitest';-import { cleanup, render } from '@solidjs/testing-library';+import { cleanup, render, screen } from '@solidjs/testing-library';+import { ASSISTANT_SLASH_COMMANDS } from '../assistantSlashCommands';import { SlashCommandAutocomplete } from '../SlashCommandAutocomplete';afterEach(cleanup);@@ -66,7 +67,7 @@ describe('SlashCommandAutocomplete', () => {);});- it('wraps keyboard selection from the first command to the last visible command', () => {+ it('wraps keyboard selection from the first command to the last command', () => {const onSelect = vi.fn();render(() => (<SlashCommandAutocomplete@@ -95,9 +96,30 @@ describe('SlashCommandAutocomplete', () => {expect(onSelect).toHaveBeenCalledWith(expect.objectContaining({- action: 'export',- name: 'export',+ action: 'redo',+ name: 'redo',}),);});++ it('renders the full local command list with an icon for every command', () => {+ const { container } = render(() => (+ <SlashCommandAutocomplete+ query=""+ visible+ position={{ top: 58, left: 0 }}+ onClose={vi.fn()}+ onSelect={vi.fn()}+ />+ ));++ const options = screen.getAllByRole('option');+ expect(options).toHaveLength(ASSISTANT_SLASH_COMMANDS.length);+ expect(options.map((option) => option.getAttribute('aria-label'))).toContain(+ 'Run /compact: Summarize older turns and keep this session moving',+ );+ expect(container.querySelectorAll('[role="option"] svg')).toHaveLength(+ ASSISTANT_SLASH_COMMANDS.length,+ );+ });});