From 4ca4a9d2ab55eb0b339ac62e7a11d517ada1aff3 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 12 Feb 2026 07:17:28 +0700 Subject: [PATCH] fix(cursor): add subcommand parity comment and raw settings TODO --- src/ccs.ts | 1 + src/web-server/routes/cursor-settings-routes.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ccs.ts b/src/ccs.ts index e6123298..a98e84d6 100644 --- a/src/ccs.ts +++ b/src/ccs.ts @@ -556,6 +556,7 @@ async function main(): Promise { // Special case: cursor command (Cursor IDE integration) // Only route to command handler for known subcommands, otherwise treat as profile // NOTE: Bare `ccs cursor` falls through to profile detection by design (differs from copilot routing) + // Note: cursor does not have enable/disable — it uses daemon start/stop instead const CURSOR_SUBCOMMANDS = ['auth', 'status', 'models', 'start', 'stop', 'help', '--help', '-h']; if (firstArg === 'cursor' && args.length > 1 && CURSOR_SUBCOMMANDS.includes(args[1])) { // `ccs cursor ` - route to cursor command handler diff --git a/src/web-server/routes/cursor-settings-routes.ts b/src/web-server/routes/cursor-settings-routes.ts index a302a0c2..cc7096d7 100644 --- a/src/web-server/routes/cursor-settings-routes.ts +++ b/src/web-server/routes/cursor-settings-routes.ts @@ -151,6 +151,8 @@ router.put('/raw', (req: Request, res: Response): void => { fs.writeFileSync(tempPath, JSON.stringify(settings, null, 2) + '\n'); fs.renameSync(tempPath, settingsPath); + // TODO: Sync raw settings back to unified config when cursor-daemon is integrated (#520) + const stat = fs.statSync(settingsPath); res.json({ success: true, mtime: stat.mtimeMs }); } catch (error) {