feat: polish web master-agent controls and dispatch recovery

This commit is contained in:
kris
2026-04-01 07:50:20 +08:00
parent 87093677b8
commit e52932e8ef
8 changed files with 153 additions and 29 deletions

View File

@@ -1,5 +1,14 @@
export const MASTER_AGENT_CHAT_PAGE_ANCHORS = {
prompt: "/me/master-agent#prompt-section",
model: "/me/master-agent#model-section",
reasoningEffort: "/me/master-agent#reasoning-effort-section",
memory: "/me/master-agent#memory-section",
} as const;
export type MasterAgentChatPageAnchors = typeof MASTER_AGENT_CHAT_PAGE_ANCHORS;
export type MasterAgentChatMenuItem = {
key: "prompt" | "memory" | "refresh";
key: "prompt" | "model" | "reasoning_effort" | "memory" | "refresh";
label: string;
href?: string;
action?: "refresh";
@@ -14,12 +23,22 @@ export function getMasterAgentChatMenuItems(projectId: string): MasterAgentChatM
{
key: "prompt",
label: "提示词",
href: "/me/master-agent#prompt-section",
href: MASTER_AGENT_CHAT_PAGE_ANCHORS.prompt,
},
{
key: "model",
label: "模型",
href: MASTER_AGENT_CHAT_PAGE_ANCHORS.model,
},
{
key: "reasoning_effort",
label: "推理强度",
href: MASTER_AGENT_CHAT_PAGE_ANCHORS.reasoningEffort,
},
{
key: "memory",
label: "记忆",
href: "/me/master-agent#memory-section",
href: MASTER_AGENT_CHAT_PAGE_ANCHORS.memory,
},
{
key: "refresh",