the chat panel gets the header and the history it should have had
ChatPanelWrapper, not EmbeddableChat — one level up, and the session persistence, the agent identity bar, the spawned-by bar and resume-the-newest all come with it. mounting the composer directly meant reimplementing those or going without. and a header: the conversation picker, scoped to this plugin's own directory, with new chat, inline rename and delete. none of it is new — it is what a dashboard's chat panel has always had, pointed at a context instead of a path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Officer-Session: 656f5c85-e49a-4f1f-b9f3-042a04b4d043
This commit is contained in:
+10
-2
@@ -2,7 +2,7 @@ import { MessageSquare, Route, ShieldCheck } from 'lucide-react';
|
||||
import type { AppRegistryMeta } from 'officerdev';
|
||||
import { HostsPanel } from './HostsPanel';
|
||||
import { CertificatesPanel } from './CertificatesPanel';
|
||||
import { ChatPanel } from './ChatPanel';
|
||||
import { ChatPanel, ChatPanelHeader } from './ChatPanel';
|
||||
|
||||
// Three panels. Hosts is what the plugin is for; certificates is the thing that quietly breaks and is
|
||||
// worth seeing beside it rather than a click away; chat is where you ask about either of them.
|
||||
@@ -21,5 +21,13 @@ export const appRegistryMetas: AppRegistryMeta[] = [
|
||||
component: CertificatesPanel,
|
||||
availableOnPanel: false,
|
||||
},
|
||||
{ key: 'proxy-manager-chat', name: 'Chat', icon: MessageSquare, component: ChatPanel, availableOnPanel: false },
|
||||
{
|
||||
key: 'proxy-manager-chat',
|
||||
name: 'Chat',
|
||||
icon: MessageSquare,
|
||||
component: ChatPanel,
|
||||
// The conversation picker, scoped to this plugin's own chat directory.
|
||||
header: ChatPanelHeader,
|
||||
availableOnPanel: false,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user