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:
Snider 2026-04-25 13:30:25 +01:00
parent 33a538a699
commit fedb1f3b00

View file

@ -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 ""