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:
Kai (Tam Nhu) Tran authored and GitHub committed 2025-12-14 01:26:54 -05:00
commit 973e01f885
1 file changed
+6 -2
+6 -2
View File
@@ -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 };