From 5197e2d7cb5cc4dd6826d51c5b6421e7e042fea1 Mon Sep 17 00:00:00 2001 From: yhangf Date: Wed, 22 Apr 2026 09:34:58 +0800 Subject: [PATCH] refactor(cli): rename command references from 'claude --resume' to 'csc --resume' --- src/components/ultraplan/UltraplanChoiceDialog.tsx | 2 +- src/services/tips/tipRegistry.ts | 2 +- src/utils/crossProjectResume.ts | 4 ++-- src/utils/gracefulShutdown.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ultraplan/UltraplanChoiceDialog.tsx b/src/components/ultraplan/UltraplanChoiceDialog.tsx index a49925e30..6b5a83c19 100644 --- a/src/components/ultraplan/UltraplanChoiceDialog.tsx +++ b/src/components/ultraplan/UltraplanChoiceDialog.tsx @@ -135,7 +135,7 @@ export function UltraplanChoiceDialog({ if (transcriptSaved) { setMessages(prev => [ ...prev, - createSystemMessage(`Previous session saved · resume with: claude --resume ${previousSessionId}`, 'suggestion'), + createSystemMessage(`Previous session saved · resume with: csc --resume ${previousSessionId}`, 'suggestion'), ]); } diff --git a/src/services/tips/tipRegistry.ts b/src/services/tips/tipRegistry.ts index 634ba782e..ab16cc4c4 100644 --- a/src/services/tips/tipRegistry.ts +++ b/src/services/tips/tipRegistry.ts @@ -376,7 +376,7 @@ const externalTips: Tip[] = [ { id: 'continue', content: async () => - 'Run claude --continue or claude --resume to resume a conversation', + 'Run csc --continue or csc --resume to resume a conversation', cooldownSessions: 10, isRelevant: async () => true, }, diff --git a/src/utils/crossProjectResume.ts b/src/utils/crossProjectResume.ts index 2a5f2f2a8..527a1b6db 100644 --- a/src/utils/crossProjectResume.ts +++ b/src/utils/crossProjectResume.ts @@ -41,7 +41,7 @@ export function checkCrossProjectResume( // Gate worktree detection to ants only for staged rollout if (process.env.USER_TYPE !== 'ant') { const sessionId = getSessionIdFromLog(log) - const command = `cd ${quote([log.projectPath])} && claude --resume ${sessionId}` + const command = `cd ${quote([log.projectPath])} && csc --resume ${sessionId}` return { isCrossProject: true, isSameRepoWorktree: false, @@ -65,7 +65,7 @@ export function checkCrossProjectResume( // Different repo - generate cd command const sessionId = getSessionIdFromLog(log) - const command = `cd ${quote([log.projectPath])} && claude --resume ${sessionId}` + const command = `cd ${quote([log.projectPath])} && csc --resume ${sessionId}` return { isCrossProject: true, isSameRepoWorktree: false, diff --git a/src/utils/gracefulShutdown.ts b/src/utils/gracefulShutdown.ts index a7feac188..754d82f07 100644 --- a/src/utils/gracefulShutdown.ts +++ b/src/utils/gracefulShutdown.ts @@ -156,7 +156,7 @@ function printResumeHint(): void { writeSync( 1, chalk.dim( - `\nResume this session with:\nclaude --resume ${resumeArg}\n`, + `\nResume this session with:\ncsc --resume ${resumeArg}\n`, ), ) resumeHintPrinted = true