diff --git a/.gitignore b/.gitignore index 34a6d1fd..6924a39a 100644 --- a/.gitignore +++ b/.gitignore @@ -98,9 +98,11 @@ offline-backend-20260512/backend/tests/* !offline-backend-20260512/backend/tests/test_deep_research_event_sink.py !offline-backend-20260512/backend/tests/test_deep_research_executor_reliability.py !offline-backend-20260512/backend/tests/test_deep_research_start_job.py -!offline-backend-20260512/backend/tests/test_summarization_human_message.py -!offline-backend-20260512/backend/tests/test_compact_menu_overrides.py -deploy +!offline-backend-20260512/backend/tests/test_summarization_human_message.py +!offline-backend-20260512/backend/tests/test_compact_menu_overrides.py +# Independent enterprise-research persistence, HTTP and race regressions. +!offline-backend-20260512/backend/tests/test_enterprise_research_tasks.py +deploy .history # Cloned third-party repos (local only) diff --git a/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx b/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx index c2c12ef1..c94fa96d 100644 --- a/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx +++ b/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx @@ -84,7 +84,6 @@ interface AgentDraft { /** 会商席位「技能识别强化」开关。 */ seatSkillDirective: boolean; knowledgeBaseIds: string[]; - jobResponsibilities: string; } function draftFromAgent(agent: Agent): AgentDraft { @@ -99,7 +98,6 @@ function draftFromAgent(agent: Agent): AgentDraft { templateName: agent.template_name ?? "", seatSkillDirective: agent.seat_skill_directive ?? false, knowledgeBaseIds: agent.llmwiki_knowledge_base_ids ?? [], - jobResponsibilities: agent.job_responsibilities ?? "", }; } @@ -153,6 +151,7 @@ export function AgentDetailPanel({ skillsIcon, skillsTitle, showCommonQuestions = false, + jobResponsibilities, panelTitle, embedded, hideStatusBadges = false, @@ -173,6 +172,11 @@ export function AgentDetailPanel({ skillsIcon?: ReactNode; skillsTitle?: string; showCommonQuestions?: boolean; + /** + * 业务链席位上配置的岗位职责。传入(含空字符串)时在常用问题上方展示; + * 不传则隐藏该区块。此字段来自业务链,不随智能体本身编辑。 + */ + jobResponsibilities?: string | null; /** Overrides the standard panel heading for an embedded consumer. */ panelTitle?: string; /** Renders one fixed panel instead of the responsive collapsible rail. */ @@ -341,8 +345,6 @@ export function AgentDetailPanel({ request.template_name = draft.templateName.trim(); if (draft.seatSkillDirective !== (agent.seat_skill_directive ?? false)) request.seat_skill_directive = draft.seatSkillDirective; - if (draft.jobResponsibilities.trim() !== (agent.job_responsibilities ?? "")) - request.job_responsibilities = draft.jobResponsibilities.trim(); if ( JSON.stringify(draft.knowledgeBaseIds) !== JSON.stringify(agent.llmwiki_knowledge_base_ids ?? []) @@ -725,37 +727,21 @@ export function AgentDetailPanel({ - {/* ── 岗位职责 ───────────────────────────────────────────────────── */} -
} - title="岗位职责" - > - {editing && draft ? ( -