diff --git a/test/runtime/gateway_acp_client_auth_test.dart b/test/runtime/gateway_acp_client_auth_test.dart index 108b831c..2e9dc57c 100644 --- a/test/runtime/gateway_acp_client_auth_test.dart +++ b/test/runtime/gateway_acp_client_auth_test.dart @@ -710,6 +710,31 @@ void main() { }, ); + test( + 'desktop controller resolves OpenClaw gateway submit on managed bridge origin', + () { + final controller = AppController( + environmentOverride: const {}, + ); + addTearDown(controller.dispose); + + final endpoint = controller + .resolveExternalAcpEndpointForRequestInternal( + _taskRequest( + target: AssistantExecutionTarget.gateway, + provider: SingleAgentProvider.openclaw, + ), + ); + + expect( + endpoint.toString(), + 'https://xworkmate-bridge.svc.plus/gateway/openclaw', + ); + expect(endpoint, isNotNull); + expect(endpoint!.path, isNot('/acp/rpc')); + }, + ); + test( 'desktop task execution uses session.start for new sessions', () async {