feat: add web master-agent chat menu

This commit is contained in:
kris
2026-04-01 07:42:17 +08:00
parent a27c7da7d4
commit 87093677b8
5 changed files with 111 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import {
AppShell,
ChatBubble,
ChatComposer,
MasterAgentChatMenu,
MasterIdentityPill,
PageNav,
ProjectHeaderActions,
@@ -45,7 +46,18 @@ export default async function ProjectChatPage({
<PageNav
title={detail.project.name}
backHref="/conversations"
rightNode={detail.masterIdentity ? <MasterIdentityPill identity={detail.masterIdentity} /> : undefined}
rightNode={
detail.masterIdentity ? (
<div className="flex items-center gap-2">
<MasterIdentityPill identity={detail.masterIdentity} />
{detail.project.id === "master-agent" ? (
<MasterAgentChatMenu projectId={detail.project.id} />
) : null}
</div>
) : detail.project.id === "master-agent" ? (
<MasterAgentChatMenu projectId={detail.project.id} />
) : undefined
}
/>
<div className="flex min-h-0 flex-1 flex-col px-[18px] pb-0">
<div className="text-[12px] text-[#8C8C8C]">