mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 02:14:32 +00:00
fix(cursor): redact daemon token from dashboard start (#1540)
Redacts the Cursor daemon token from dashboard start output.
This commit is contained in:
1 parent
74dd2f38cc
commit
b85a3de26e
2 files changed
+40
-30
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user