fix(cursor): redact daemon token from dashboard start (#1540)

Redacts the Cursor daemon token from dashboard start output.
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-06-15 23:24:37 -04:00
1 parent 74dd2f38cc
commit b85a3de26e
2 files changed
+40 -30

No files matched your search

+3 -1
View File
@@ -234,7 +234,9 @@ router.post('/daemon/start', async (_req: Request, res: Response): Promise<void>
port: cursorConfig.port,
ghost_mode: cursorConfig.ghost_mode,
});
res.json(result);
const { daemonToken: _redactedDaemonToken, ...publicResult } = result;
void _redactedDaemonToken;
res.json(publicResult);
} catch (error) {
res.status(500).json({ error: (error as Error).message });
}