From fc2bc83d1d57bcc70d47645e15cb2352f030a202 Mon Sep 17 00:00:00 2001 From: MK Date: Thu, 5 Mar 2026 12:07:03 -0500 Subject: [PATCH] fix: enable auth and pass configured channels when starting agents from UI Remove --no-auth flag so agents start with bearer token authentication (token read by chat proxy via loadAgentToken). Pass --with flag with configured channels so Slack/Telegram adapters start with the agent. --- forge-ui/process.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/forge-ui/process.go b/forge-ui/process.go index 28d78b9..86d1839 100644 --- a/forge-ui/process.go +++ b/forge-ui/process.go @@ -4,6 +4,7 @@ import ( "fmt" "os/exec" "strconv" + "strings" "sync" ) @@ -71,7 +72,11 @@ func (pm *ProcessManager) Start(agentID string, info *AgentInfo, passphrase stri port := pm.ports.Allocate() pm.allocated[agentID] = port - cmd := exec.Command(pm.exePath, "serve", "start", "--port", strconv.Itoa(port), "--no-auth") + args := []string{"serve", "start", "--port", strconv.Itoa(port)} + if len(info.Channels) > 0 { + args = append(args, "--with", strings.Join(info.Channels, ",")) + } + cmd := exec.Command(pm.exePath, args...) cmd.Dir = info.Directory if passphrase != "" {