Commit 229851d
committed
fix(gateway): resolve plugin-registered methods through live registry in gateway call dispatcher
When a plugin registers a gateway RPC method via registerGatewayMethod(),
the method is added to the active plugin registry correctly (visible via
plugins inspect --runtime). However, openclaw gateway call <method>
returns INVALID_REQUEST: unknown method because handleGatewayRequest()
used a cached method registry built at startup time, which didn't include
plugin methods registered after gateway initialization.
Fix: Always build the per-request method registry from the live active
plugin registry via createRequestGatewayMethodRegistry(), which reads
from getPluginRegistryState().activeRegistry. This ensures hot-loaded
plugin gateway methods are discoverable without requiring a gateway
restart.
Closes #941271 parent 47cad60 commit 229851d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
| 633 | + | |
635 | 634 | | |
636 | 635 | | |
637 | 636 | | |
| |||
0 commit comments