Files
cc-web/.trellis/tasks/09-16-create-conversation-async/prd.md

11 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 修复创建会话异步等待提示
目标:按用户最新要求,只修正 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;没有据此变更代码。用户明确缩小范围后取消任何绝对禁止轮询要求。