mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 06:40:20 +00:00 
			
		
		
		
	Improved app behavior after system was waked up from sleep (#418)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Build and Release / Read metadata (push) Waiting to run
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, deb) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Prepare & create release (push) Blocked by required conditions
				
			
		
			
				
	
				Build and Release / Publish release (push) Blocked by required conditions
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	Build and Release / Read metadata (push) Waiting to run
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, deb) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
				
			Build and Release / Prepare & create release (push) Blocked by required conditions
				
			Build and Release / Publish release (push) Blocked by required conditions
				
			This commit is contained in:
		
							parent
							
								
									fdca581c90
								
							
						
					
					
						commit
						9cc3c68dda
					
				| @ -175,17 +175,18 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis | ||||
|                     _ = Task.Run(async () => | ||||
|                     { | ||||
|                         // Set up the plugin system: | ||||
|                         PluginFactory.Setup(); | ||||
|                          | ||||
|                         // Ensure that all internal plugins are present: | ||||
|                         await PluginFactory.EnsureInternalPlugins(); | ||||
|              | ||||
|                         // Load (but not start) all plugins, without waiting for them: | ||||
|                         var pluginLoadingTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5)); | ||||
|                         await PluginFactory.LoadAll(pluginLoadingTimeout.Token); | ||||
|              | ||||
|                         // Set up hot reloading for plugins: | ||||
|                         PluginFactory.SetUpHotReloading(); | ||||
|                         if (PluginFactory.Setup()) | ||||
|                         { | ||||
|                             // Ensure that all internal plugins are present: | ||||
|                             await PluginFactory.EnsureInternalPlugins(); | ||||
| 
 | ||||
|                             // Load (but not start) all plugins, without waiting for them: | ||||
|                             var pluginLoadingTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5)); | ||||
|                             await PluginFactory.LoadAll(pluginLoadingTimeout.Token); | ||||
| 
 | ||||
|                             // Set up hot reloading for plugins: | ||||
|                             PluginFactory.SetUpHotReloading(); | ||||
|                         } | ||||
|                     }); | ||||
|                 } | ||||
|                  | ||||
|  | ||||
| @ -130,7 +130,7 @@ internal sealed class Program | ||||
|             .AddHubOptions(options => | ||||
|             { | ||||
|                 options.MaximumReceiveMessageSize = null; | ||||
|                 options.ClientTimeoutInterval = TimeSpan.FromSeconds(1_200); | ||||
|                 options.ClientTimeoutInterval = TimeSpan.FromDays(14); | ||||
|                 options.HandshakeTimeout = TimeSpan.FromSeconds(30); | ||||
|             }); | ||||
| 
 | ||||
|  | ||||
| @ -20,10 +20,10 @@ public static partial class PluginFactory | ||||
|     /// Set up the plugin factory. We will read the data directory from the settings manager. | ||||
|     /// Afterward, we will create the plugins directory and the internal plugin directory. | ||||
|     /// </summary> | ||||
|     public static void Setup() | ||||
|     public static bool Setup() | ||||
|     { | ||||
|         if(IS_INITIALIZED) | ||||
|             return; | ||||
|             return false; | ||||
|          | ||||
|         DATA_DIR = SettingsManager.DataDirectory!; | ||||
|         PLUGINS_ROOT = Path.Join(DATA_DIR, "plugins"); | ||||
| @ -34,6 +34,8 @@ public static partial class PluginFactory | ||||
|          | ||||
|         HOT_RELOAD_WATCHER = new(PLUGINS_ROOT); | ||||
|         IS_INITIALIZED = true; | ||||
|          | ||||
|         return true; | ||||
|     } | ||||
|      | ||||
|     public static void Dispose() | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| # v0.9.41, build 216 (2025-0x-xx xx:xx UTC) | ||||
| - Added the user-language, as provided by the OS, to the about page. This helps in identifying user-specific issues related to language settings. | ||||
| - Changed the terminology from "temporary chats" to "disappearing chats" in the UI. This makes it clearer to understand the purpose of these chats. | ||||
| - Improved the hot reloading of the plugin system to prevent overlapping reloads.   | ||||
| - Improved the hot reloading of the plugin system to prevent overlapping reloads. | ||||
| - Improved the app behavior when the user system was waked up from sleep mode. | ||||
| - Fixed the color for the update notification button to match the color theme. | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user