mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 02:15:36 +00:00
Merge pull request #99 from kaitranntt/kai/fix/98-profile-not-found-unified-config
fix(auth): Profile not found for account profiles in unified config mode
This commit is contained in:
1 file changed
+6
-2
+6
-2
@@ -397,8 +397,12 @@ async function main(): Promise<void> {
|
||||
// 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 };
|
||||
|
||||
Reference in new issue
Block a user