Skip to content

Conversation

@dfwgj
Copy link
Collaborator

@dfwgj dfwgj commented Dec 14, 2025

Summary

  • Add single instance lock to prevent multiple app instances from running simultaneously
  • Auto open main window on startup for better user experience
  • Focus existing window when user clicks shortcut while app is already running
  • Add resource type validation framework for import (role requires .md, tool requires .js)
  • Fix logger file lock issue with graceful fallback to console-only mode
  • Fix logs list refresh failure after clearing all logs

Changes

Single Instance Lock

  • Implemented app.requestSingleInstanceLock() in bootstrap.ts
  • Added second-instance event handler to focus existing window or open new one
  • Prevents log file EPERM errors when multiple instances try to access the same file

UX Improvements

  • Main window automatically opens on app startup
  • Double-clicking shortcut while app is running now properly focuses the existing window

Resource Import Validation

  • Added validateResourceType() method to check archive contents match selected type
  • Role resources must contain .md files, tool resources must contain .js files
  • Added i18n translations for validation error messages

Bug Fixes

  • Logger gracefully falls back to console-only mode when log file is locked
  • Fixed logs list not refreshing after deleting all logs (added try-catch for file operations)

Closes

dfwgj and others added 4 commits November 19, 2025 16:46
- Set notification adapter to silent by default to prevent system sounds
- Add autoplayPolicy to BrowserWindow to prevent media autoplay
- Improves user experience by eliminating disruptive notification sounds

This change makes notifications silent by default while still showing
them visually, following desktop application best practices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add refresh button to reload resource list
- Add batch import feature for importing multiple resources at once
- Add scroll-area UI component
- Improve resource management user experience

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add single instance lock to prevent multiple app instances
- Auto open main window on startup for better UX
- Focus existing window when user clicks shortcut while app is running
- Add resource type validation framework for import
- Fix logger file lock issue with graceful fallback to console
- Fix logs list refresh after clearing all logs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@deepracticexs deepracticexs merged commit e09b76d into main Dec 15, 2025
1 check passed
@deepracticexs deepracticexs deleted the feat/single-instance-and-ux-improvements branch December 15, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants