feat(ai-agents): Add copaw type for agent by zhengkunwang223 · Pull Request #12017 · 1Panel-dev/1Panel
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reinstate bridge port validation for OpenClaw create requests
Dropping validate:"required" from bridgePort allows API clients to create an OpenClaw agent without a bridge port (0), because Create now only calls checkPortExist(req.BridgePort) and checkPortExist(0) passes. In that case we still inject PANEL_APP_PORT_BRIDGE=0 into install params, which can leave the bridge endpoint unusable or mapped to an unexpected ephemeral port for non-UI callers that bypass the frontend validator.
Useful? React with 👍 / 👎.