From 6eca9c053b7e8e530bbea2341f0c278ed292eb5b Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 10 Jun 2026 18:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/components/RequirementChatPanel.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web/src/views/projects/components/RequirementChatPanel.vue b/web/src/views/projects/components/RequirementChatPanel.vue index fb1f6ac..bfe22a6 100644 --- a/web/src/views/projects/components/RequirementChatPanel.vue +++ b/web/src/views/projects/components/RequirementChatPanel.vue @@ -37,6 +37,12 @@ placeholder="system prompt(已自动注入需求上下文,可修改)" :autosize="{ minRows: 4, maxRows: 10 }" /> +
= { auditing: '评审', } +// 新建会话默认首条消息:system prompt 仅随请求下发不产生消息,必须有一条 +// 用户消息才能触发 AI 开始输出,"创建并开始"靠它兑现。 +const DEFAULT_FIRST_MESSAGE = '请开始本阶段工作。' + const props = defineProps<{ slug: string requirement: Requirement @@ -155,6 +165,7 @@ const conversations = ref([]) const showCreateForm = ref(false) const newModelId = ref(undefined) const newSystemPrompt = ref('') +const newFirstMessage = ref(DEFAULT_FIRST_MESSAGE) const creating = ref(false) const draft = ref('') const scrollEl = ref(null) @@ -180,6 +191,7 @@ function openCreateForm() { props.requirement, props.prevArtifact, ) + newFirstMessage.value = DEFAULT_FIRST_MESSAGE showCreateForm.value = true } @@ -196,6 +208,8 @@ async function onCreateConversation() { showCreateForm.value = false await loadConversations() await session.openConversation(conv.id) + const first = newFirstMessage.value.trim() + if (first) await session.sendMessage(first) } finally { creating.value = false }