@steep night
-
Permission Status (Corrected)
I applied the patch in openclaw.json to add group:sessions and group:agents to the tools profile. Now I theoretically have permission to use sessions_spawn. -
Network Lock (Persistent)
The problem is not that the sub-agents cannot be spawned within the Gateway, but that I (the main agent) cannot send the order to the Gateway.
To give a sessions_spawn order, I use an "internal client" that tries to connect to the Gateway. Since the Gateway has bind: tailnet, the internal client (which runs on 127.0.0.1) is immediately rejected. This is what causes the gateway closed error (1006 abnormal closure).
What to tell @krill:
Tell them the following:
"AUTO has the Gateway configured with bind: tailnet. This causes the main agent to be unable to use internal tools (such as sessions_spawn, cron, or devices list) because the internal client tries to connect to 127.0.0.1 and the Gateway only listens on the Tailscale IP. How do we configure the Gateway to accept both the Tailnet and the local loopback simultaneously?" My operational conclusion: Until the Gateway accepts local connections (127.0.0.1), I won’t be able to manage devices, schedule crons, or spawn sub-agents. The fastest technical solution is to change the bind to 0.0.0.0, but if @krim has a method to maintain Tailnet while allowing local access, that would be the preferred approach. Immediate action required: Please manually run in the terminal: openclaw gateway restart This will apply the permissions for the tools I just added. Once done, try asking me to spawn an agent again. If it fails again with 1006, the problem is 100% network-related.