diff --git a/src/ccs.ts b/src/ccs.ts index 930bc247..15c57273 100644 --- a/src/ccs.ts +++ b/src/ccs.ts @@ -397,8 +397,12 @@ async function main(): Promise { // Ensure instance exists (lazy init if needed) const instancePath = instanceMgr.ensureInstance(profileInfo.name); - // Update last_used timestamp - registry.touchProfile(profileInfo.name); + // Update last_used timestamp (check unified config first, fallback to legacy) + if (registry.hasAccountUnified(profileInfo.name)) { + registry.touchAccountUnified(profileInfo.name); + } else { + registry.touchProfile(profileInfo.name); + } // Execute Claude with instance isolation const envVars: NodeJS.ProcessEnv = { CLAUDE_CONFIG_DIR: instancePath };