fix(FN-2698): load plugins during CLI runtime startup
- Load configured plugins during dashboard startup before launching the UI flow - Load plugins during serve and daemon startup so runtime hooks are available immediately - Add targeted CLI command tests for dashboard, serve, and daemon auto-load behavior at startup - Add a changeset documenting the plugin runtime startup fix for @runfusion/fusion
This commit is contained in:
@@ -369,6 +369,17 @@ export async function runDaemon(opts: DaemonOptions = {}) {
|
||||
taskStore: store,
|
||||
});
|
||||
|
||||
// Auto-load all enabled plugins so runtime UI (NewAgentDialog, AgentDetailView)
|
||||
// can discover installed runtimes like Hermes and OpenClaw.
|
||||
try {
|
||||
const { loaded, errors } = await pluginLoader.loadAllPlugins();
|
||||
console.log(`[plugins] Loaded ${loaded} plugins (${errors} errors)`);
|
||||
} catch (err) {
|
||||
console.error(
|
||||
`[plugins] Failed to load plugins: ${err instanceof Error ? err.message : err}`
|
||||
);
|
||||
}
|
||||
|
||||
// Get subsystems from the cwd engine for the HTTP layer
|
||||
const heartbeatMonitor = cwdEngine.getRuntime().getHeartbeatMonitor();
|
||||
const missionAutopilot = cwdEngine.getRuntime().getMissionAutopilot();
|
||||
|
||||
Reference in New Issue
Block a user