| @@ -19,10 +19,10 @@ | ||
| 19 | 19 | * section inside WP Explorer (my-wordpress.php). |
| 20 | 20 | * |
| 21 | 21 | * The module is opt-in behind the `agents` extended option — while |
| 22 | 22 | * off, no user-meta registration, no REST routes and no chat window. |
| 23 | - * Two files load regardless of the flag: guard.php and | |
| 24 | - * my-wordpress.php. See below for why. | |
| 23 | + * Guard, WP Explorer discovery, and job cleanup load regardless of the flag. | |
| 24 | + * See below for why. | |
| 25 | 25 | * |
| 26 | 26 | * @package OpenStation |
| 27 | 27 | */ |
| 28 | 28 | |
| @@ -154,8 +154,10 @@ | ||
| 154 | 154 | * Loaded after the helpers above, which it needs to build the entity |
| 155 | 155 | * descriptor and the section config. |
| 156 | 156 | */ |
| 157 | 157 | require_once OPENSTATION_DIR . 'includes/agents/my-wordpress.php'; |
| 158 | +// Queued work must fail safely and retained data must expire even when disabled. | |
| 159 | +require_once OPENSTATION_DIR . 'includes/agents/jobs.php'; | |
| 158 | 160 | |
| 159 | 161 | /** |
| 160 | 162 | * Loads the agents module when the framework is enabled. |
| 161 | 163 | * |