fix(cursor): add subcommand parity comment and raw settings TODO

This commit is contained in:
Tam Nhu Tran
2026-02-12 07:17:28 +07:00
parent 1e4cae3490
commit 4ca4a9d2ab
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -556,6 +556,7 @@ async function main(): Promise<void> {
// 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 <subcommand>` - route to cursor command handler
@@ -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) {