cc-pets 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Sources/CCPets/main.m +3 -2
- package/package.json +1 -1
package/Sources/CCPets/main.m
CHANGED
|
@@ -1036,8 +1036,9 @@ static int RenderQuotaDashboard(NSString *path) {
|
|
|
1036
1036
|
[NSFileManager.defaultManager removeItemAtPath:stale error:nil];
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1039
|
+
// 启动模式在应用生命周期内保持不变。手动启动的桌宠即使后来检测到
|
|
1040
|
+
// Codex/Claude 客户端,也不应被转成 CLI 托管模式并随客户端退出。
|
|
1041
|
+
if (liveClients == 0 && self.managedByCLI) [NSApp terminate:nil];
|
|
1041
1042
|
}
|
|
1042
1043
|
- (void)refreshUsage:(id)sender {
|
|
1043
1044
|
self.quotaView.codexUsage = LatestUsage();
|