feat: Add Mini Chat quick access window (Spotlight-like)#181
Merged
Saul-Gomez-J merged 2 commits intolevante-hub:bot-testsfrom Jan 27, 2026
Merged
Conversation
Implements issue levante-hub#170 - Quick AI access via global shortcut. Main Process: - Add system tray for background operation (src/main/tray/) - Add global shortcuts manager (Cmd/Ctrl+Shift+Space) (src/main/shortcuts/) - Add mini-chat window manager with Spotlight-like positioning (src/main/windows/) - Integrate tray, shortcuts, and mini-chat into main.ts Renderer: - Add mini-chat.html and mini-chat.tsx entry points - Add MiniChatPage with keyboard handling - Add MiniChatContainer, Header, Input, Message components - Add miniChatStore with Zustand for local state - Add mini-chat.css with dark/light mode support Preload: - Add miniChat API for window control (hide, resize, toggle) - Add IPC event subscriptions for shown/hidden states Build: - Update vite.renderer.config.ts for multi-entry (main + mini-chat) Features: - Global shortcut (Cmd+Shift+Space) works app-focused or not - Spotlight-style floating window positioned at screen center-top - Auto-hide on blur (Spotlight behavior) - Model selector from configured models - Streaming responses with typing indicator - Dark mode support via prefers-color-scheme - ESC to dismiss Note: Requires tray icons for production (using main icon as fallback)
- Remove visibleOnAllWorkspaces from constructor, use setVisibleOnAllWorkspaces() method instead - Use modelService.getAvailableModels() instead of non-existent models.getSelected() - Add 'parts' property to messages for UIMessage compatibility with AI SDK v5
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements issue #170 - Quick AI access via global shortcut (Cmd/Ctrl+Shift+Space).
Changes
Main Process
src/main/tray/): Background operation with context menusrc/main/shortcuts/): Cmd/Ctrl+Shift+Space to toggle mini-chatsrc/main/windows/): Spotlight-like floating windowRenderer
mini-chat.html+mini-chat.tsxprefers-color-schemePreload
miniChatAPI for window control (hide, resize, toggle)Build
vite.renderer.config.tsfor multi-entry buildFeatures
Screenshots
To be added after testing
Testing
Closes #170