Files
cc-web/.planning/create-conversation-async/findings.md

10 lines
1.1 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.

# 发现
已暴露工具描述只强调持久会话用途。requestReply 参数原文:若为 true,会在新对话完成本轮输出后把回复写回来源对话,并继续触发来源对话运行。默认 false。
该描述未说明创建调用立即返回、禁止 sleep/轮询、来源会话可结束当前轮次。代码索引 home-cc-web 为 ready。
实现 createMcpConversation 同步创建并投递消息后返回,未阻塞等待;requestReply=true 且无首条消息会返回 reply_requires_initial_message;send_message 已说明立即返回但 create 未说明。已有 scripts/ccweb-message-reply-unit.js 与 scripts/regression.js 创建回传集成覆盖。
回传由 deliverCrossConversationReply 完成;来源仍 running 时返回 false,保持 ready,来源完成轮次后 flush 再投递。循环 sleep 会持续占着 running,导致自动回传延迟。用户只要默认不轮询且允许显式例外,不改运行时行为。
用户再次指出“默认异步等待”可能被误读成参数控制的阻塞方式。修订明确 requestReply 控制回传订阅,是否轮询由模型遵循提示词与用户要求决定。