bug fixed
This commit is contained in:
parent
c29a792610
commit
af2862b561
1 changed files with 8 additions and 1 deletions
|
|
@ -1856,7 +1856,14 @@ func (al *AgentLoop) handleCommandAsync(ctx context.Context, msg bus.InboundMess
|
||||||
// Get default agent for command handling
|
// Get default agent for command handling
|
||||||
agent := al.registry.GetDefaultAgent()
|
agent := al.registry.GetDefaultAgent()
|
||||||
|
|
||||||
response, handled := al.handleCommand(ctx, msg, agent)
|
// Build processOptions for commands that need session info (e.g., /clear)
|
||||||
|
opts := &processOptions{
|
||||||
|
SessionKey: msg.SessionKey,
|
||||||
|
Channel: msg.Channel,
|
||||||
|
ChatID: msg.ChatID,
|
||||||
|
}
|
||||||
|
|
||||||
|
response, handled := al.handleCommand(ctx, msg, agent, opts)
|
||||||
if !handled {
|
if !handled {
|
||||||
// Command not recognized or passed through, ignore
|
// Command not recognized or passed through, ignore
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue