支持 /new 清空会话或携带新问题执行,忙碌时拒绝并保留原任务状态。 修复路由会话隔离及旧摘要回写,完善 OpenAI reasoning.effort 和 temperature 处理。 补充中英文文档与测试;相关包回归、race、lint 和 Gateway 构建通过。
10 lines
308 B
Go
10 lines
308 B
Go
package channels
|
|
|
|
import "github.com/sipeed/picoclaw/pkg/bus"
|
|
|
|
// IsCommandReply identifies a reply that must leave the running task's
|
|
// placeholder, stream, and tool feedback messages intact.
|
|
func IsCommandReply(msg bus.OutboundMessage) bool {
|
|
return msg.Context.Raw["outbound_kind"] == "command_reply"
|
|
}
|