fix(cursor): show auto-detect error message, add subcommand sync comment

This commit is contained in:
Tam Nhu Tran
2026-02-12 07:59:39 +07:00
parent ce1915366d
commit 887efa4069
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -536,6 +536,7 @@ async function main(): Promise<void> {
// Only route to command handler for known subcommands, otherwise treat as profile
// Note: Bare `ccs cursor` shows help (unlike copilot which falls through to profile)
// This is intentional — cursor has no profile-switching mode
// Keep in sync with cursor-command.ts switch cases
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
+5 -1
View File
@@ -107,7 +107,11 @@ async function handleAuth(): Promise<number> {
// Fall back to manual import
console.log('');
console.log('Auto-detection failed. Please provide credentials manually.');
if (autoResult.error) {
console.log(`Auto-detection failed: ${autoResult.error}`);
} else {
console.log('Auto-detection failed. Please provide credentials manually.');
}
console.log('');
console.log('To find your Cursor credentials:');
console.log(' 1. Open Cursor IDE');