fix(agent/monitor): AX-6 sweep on monitor.go — net/url → core.URLEncode
url.QueryEscape → core.URLEncode for inbox URL agent param encoding. net/url import removed. Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=962
This commit is contained in:
parent
33a538a699
commit
fedb1f3b00
1 changed files with 1 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ package monitor
|
|||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"dappco.re/go/agent/pkg/agentic"
|
||||
|
|
@ -420,7 +419,7 @@ func (m *Subsystem) checkInbox() string {
|
|||
}
|
||||
|
||||
baseURL := monitorAPIURL()
|
||||
inboxURL := core.Concat(baseURL, "/v1/messages/inbox?agent=", url.QueryEscape(agentic.AgentName()))
|
||||
inboxURL := core.Concat(baseURL, "/v1/messages/inbox?agent=", core.URLEncode(agentic.AgentName()))
|
||||
httpResult := agentic.HTTPGet(context.Background(), inboxURL, core.Trim(brainKey), "Bearer")
|
||||
if !httpResult.OK {
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue