fix(agent): preserve full telemetry (disks, cpu_details, logged_users) and format desktop_control driver-action params (#180)

This commit is contained in:
2026-08-08 23:41:46 -04:00
committed by GitHub
parent ebd7e9e434
commit d442f1e3f9
3 changed files with 115 additions and 5 deletions
+2 -1
View File
@@ -784,7 +784,8 @@ router.post('/resources/:id/driver-action', async (req, res, next) => {
if (!resource) return res.status(404).json({ status: 'error', message: 'resource not found' });
const { action, params } = req.body || {};
if (!action) return res.status(400).json({ status: 'error', message: 'action is required' });
const result = await DriverRegistry.execAction(resource, action, params || {});
const actionParams = params || req.body || {};
const result = await DriverRegistry.execAction(resource, action, actionParams);
res.json({ status: 'ok', resourceId: resource.id, result });
} catch (err) { next(err); }
});