feat: minimize to system tray (#850)#3004
Conversation
Let Agent hide to the tray on minimize, restore from the tray icon, and start hidden via --start-minimized-to-tray. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Current behavior is that after the initial Agent launch, you need to minimize to tray using the Windows top button at least once per session before the tray icon becomes available. If the user has already enabled "Minimize to tray" in Settings, I wonder if it would be better to have the tray icon be available immediately upon opening Agent every time? Also, if the Agent window is in a maximized state, and then you send it to tray by clicking the Windows minimize button at the top, it doesn't retain the maximized state when restoring from the tray (or when clicking the desktop launcher again). But once the tray icon is available, if you minimize it again using only the tray icon, it will then remember the maximized state. But still not when using the Windows minimize button. Is this the desired behavior? Video of the issue: |
Summary
--start-minimized-to-trayCLI option to launch Agent hidden in the tray (e.g. for autostart entries)Closes #850
Test plan
--start-minimized-to-trayand confirm Agent starts with only the tray icon visibleMade with Cursor