明确创建会话异步回传提示并重新打包

This commit is contained in:
shiyue
2026-09-17 21:29:40 +08:00
parent 8ecc778645
commit 96bfcaaf99
10 changed files with 91 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
{"file":".trellis/spec/backend/quality-guidelines.md","reason":"后端质量约定"}
{"file":".planning/create-conversation-async/findings.md","reason":"工具契约与回传链路证据"}

View File

@@ -0,0 +1,2 @@
{"file":".trellis/spec/backend/quality-guidelines.md","reason":"后端质量约定"}
{"file":".planning/create-conversation-async/findings.md","reason":"工具契约与回传链路证据"}

View File

@@ -0,0 +1,10 @@
# 修复创建会话异步等待提示
目标:按用户最新要求,只修正 ccweb_create_conversation 提示词,明确“启用 requestReply 后,由系统异步回传结果;除非用户明确要求轮询,否则不主动轮询等待”。
1. 核验工具提示词和异步回复链路 — completed
2. 修正创建会话的异步交互契约 — completed
3. 补充并运行相关回归验证 — completed
4. 核对生效条件并整理交付 — completed
边界:只改 lib/ccweb-mcp-server.js 的 description 和 requestReply description不改功能、不改默认值、不扩展返回值、不新增测试、不重启服务。
验收description 保留用户明确指定轮询的例外false 表示不自动回传true 表示完成后回传并触发来源继续运行两者创建调用均立即返回true 必须携带 initialMessage。使用现有单测、语法检查与导出提示词检查验证。
工具限制:当前没有 update_plan 工具,以同文案文件计划与 CSV 同步状态。
错误记录:早期工具调用有格式与未打印输出问题,已改为 await tools + text没有据此变更代码。用户明确缩小范围后取消任何绝对禁止轮询要求。

View File

@@ -0,0 +1,26 @@
{
"id": "create-conversation-async",
"name": "create-conversation-async",
"title": "修复创建会话异步等待提示",
"description": "",
"status": "completed",
"dev_type": null,
"scope": null,
"package": null,
"priority": "P2",
"creator": "shiyue",
"assignee": "shiyue",
"createdAt": "2026-09-16",
"completedAt": "2026-09-17",
"branch": null,
"base_branch": "main",
"worktree_path": null,
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [],
"parent": null,
"relatedFiles": [],
"notes": "",
"meta": {}
}