✨ feat(vscode): 续聊提示词告诉规划会话怎么找原型会话

讨论里发现原型要改时,规划会话既不该自己动插件代码,也不该去翻 git log 猜
会话 id。提示词现在带上原型会话 id 和终端名,并指明走 spawning-peer-sessions
技能 SendMessage 过去;没有活会话就停下让用户从面板起一个。

Claude-Session: https://claude.ai/code/session_01Kgmb1LvrPmFX3NoUDB4zZC
This commit is contained in:
cruldra committed 2026-09-15 00:16:22 +08:00
1 parent 9a388b50ce
commit 0792c9262d
2 files changed
+23 -6

No files matched your search

+6 -1
View File
@@ -947,8 +947,10 @@ export async function handleContinueBrainstorm(panel: KanbanWebviewPanel, issueN
// 头脑风暴只用 brainstormProfilePath;空 = DEFAULT,不回退实施 profile。
let brainstormProfilePath: string | undefined
let sessionId: string | undefined
// 工单已有原型插件时,续聊提示词里让 cc 先读它,别把已经画定的界面又讨论一遍。
// 工单已有原型插件时,续聊提示词里让 cc 先读它,别把已经画定的界面又讨论一遍;
// 会话 id 一并带上,讨论里要改原型时直接 SendMessage 给原型会话。
let prototypeFile: string | undefined
let prototypeSessionId: string | undefined
try {
const stateObj = await panel.readIssueState(issueNumber)
if (stateObj && typeof stateObj.brainstormProfilePath === 'string' && stateObj.brainstormProfilePath.length > 0)
@@ -957,6 +959,8 @@ export async function handleContinueBrainstorm(panel: KanbanWebviewPanel, issueN
sessionId = stateObj.sessionId
if (stateObj && typeof stateObj.prototypeFile === 'string' && stateObj.prototypeFile.length > 0)
prototypeFile = stateObj.prototypeFile
if (stateObj && typeof stateObj.prototypeSessionId === 'string' && stateObj.prototypeSessionId.length > 0)
prototypeSessionId = stateObj.prototypeSessionId
}
catch (err) {
logger.add({
@@ -971,6 +975,7 @@ export async function handleContinueBrainstorm(panel: KanbanWebviewPanel, issueN
issueNumber,
issueRef: panel.refFor(issueNumber).externalId,
prototypeFile,
prototypeSessionId,
})
const terminalName = `issue-${issueNumber}-规划`
// 新建工单流程的 tab 叫 issue-new-{nonce}-规划,只能靠 newIssueTerminals 反查。