WIP: Temporary commit
This commit is contained in:
parent
028605cfd0
commit
daf94a30f3
3 changed files with 4 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ func (al *AgentLoop) processSystemMessage(
|
||||||
UserMessage: fmt.Sprintf("[System: %s] %s", msg.SenderID, msg.Content),
|
UserMessage: fmt.Sprintf("[System: %s] %s", msg.SenderID, msg.Content),
|
||||||
DefaultResponse: "Background task completed.",
|
DefaultResponse: "Background task completed.",
|
||||||
EnableSummary: false,
|
EnableSummary: false,
|
||||||
SendResponse: true,
|
SendResponse: false, // Prevent duplicate responses caused by system message processing
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ type QQChannel struct {
|
||||||
processedIDs map[string]bool
|
processedIDs map[string]bool
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
}
|
}
|
||||||
|
chatTypeMap map[string]string // Track whether a ChatID is group or C2C
|
||||||
|
chatTypeMu sync.RWMutex // Protects chatTypeMap
|
||||||
|
|
||||||
func NewQQChannel(cfg config.QQConfig, messageBus *bus.MessageBus) (*QQChannel, error) {
|
func NewQQChannel(cfg config.QQConfig, messageBus *bus.MessageBus) (*QQChannel, error) {
|
||||||
base := channels.NewBaseChannel("qq", cfg, messageBus, cfg.AllowFrom,
|
base := channels.NewBaseChannel("qq", cfg, messageBus, cfg.AllowFrom,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ type SubagentTask struct {
|
||||||
Status string
|
Status string
|
||||||
Result string
|
Result string
|
||||||
Created int64
|
Created int64
|
||||||
|
announcedOnce sync.Once // Ensures the completion announcement is sent only once
|
||||||
}
|
}
|
||||||
|
|
||||||
type SubagentManager struct {
|
type SubagentManager struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue