- Application Won't Start
- API Issues
- Settings Not Saving
- Quick Actions Not Working
- Performance Issues
- Development Issues
The application is building successfully but no window appears. Here are the common causes and fixes:
The app might be crashing due to a runtime error. Try starting with console output:
Windows PowerShell:
cd "c:\Users\Stephen\source\repos\compose-booster"
$env:ELECTRON_ENABLE_LOGGING=1
npm start 2>&1Windows CMD:
cd "c:\Users\Stephen\source\repos\compose-booster"
set ELECTRON_ENABLE_LOGGING=1
npm start 2>&1This will show any error messages that are causing the crash.
The preload scripts might not be found. Check .vite/build/ directory to see if preload.js and settingsPreload.js exist.
The electron-store might be having issues. Try clearing the config:
Windows:
del %APPDATA%\compose-booster\config.json
macOS:
rm ~/Library/Application\ Support/compose-booster/config.json
The window might be created but never shown. Try modifying src/main/windows/mainWindow.ts:
Change show: false to show: true on line 27.
From the compose-booster directory:
npm startWindows:
tasklist | findstr electronmacOS/Linux:
ps aux | grep electronThe app should open DevTools automatically in development mode (check src/main/windows/mainWindow.ts line 57-59).
If you see errors in DevTools console, those will help diagnose the issue.
-
Check the Vite dev server - When you run
npm start, you should see:➜ Local: http://localhost:5173/Try opening this in your browser to see if the renderer HTML loads.
-
Check built files exist:
dir .vite\buildYou should see
main.js,preload.js, andsettingsPreload.js. -
Try a clean rebuild:
rm -rf .vite node_modules npm install npm start
The app was designed to work with:
- Node.js v16+
- Electron 39.2.6
- Vite 5.4.21
- Windows 10/11 or macOS 12+
If the app won't start, you can test the API service independently:
- Set your API key in the code temporarily (NOT recommended for production)
- Use the mock mode:
$env:MOCK_API="true"thennpm start
Cause: No API key has been set in Settings.
Solution:
- Open Settings (File → Settings or Ctrl/Cmd+,)
- Enter your OpenRouter API key
- Click "Test Key" to verify
- Click "Save Settings"
Get an API key: https://openrouter.ai/keys
Cause: API key is incorrect or expired.
Solutions:
- Verify your key at https://openrouter.ai/keys
- Generate a new key if needed
- Make sure you copied the entire key (starts with
sk-or-v1-) - Re-enter the key in Settings
Cause: Your OpenRouter account has no credits.
Solutions:
- Add credits at https://openrouter.ai/credits
- Check your usage at https://openrouter.ai/activity
- Use a cheaper model (e.g., Claude Haiku or GPT-4o Mini)
Cause: Too many requests in a short time.
Solutions:
- Wait for the specified retry time
- Reduce request frequency
- Upgrade your OpenRouter plan if needed
Symptoms: "Failed to connect", "Network error", "Timeout"
Solutions:
- Check your internet connection
- Verify you can access https://openrouter.ai in a browser
- Check firewall/antivirus settings
- Try using a VPN if blocked
Cause: electron-store write permissions or corrupted config file.
Solution:
- Close the app
- Delete the config file:
- Windows:
%APPDATA%\compose-booster\config.json - macOS:
~/Library/Application Support/compose-booster/config.json
- Windows:
- Restart the app (creates new config with defaults)
- Re-enter your settings
Cause: Not clicking "Save Settings" button.
Solution:
- Always click "Save Settings" after making changes
- Settings window will close automatically on successful save
Causes & Solutions:
- No input text - Type or paste email into input area first
- Already processing - Wait for current operation to finish
- No API key - Configure API key in Settings
- Model not available - Check OpenRouter service status
Solutions:
- Make sure the main window has focus (click on it)
- Try clicking the button directly instead
- Check if another app is capturing the shortcut
- Restart the application
Causes:
- Using slower models (GPT-4, Claude Opus)
- Long input text (>5000 words)
- Poor internet connection
- OpenRouter API server load
Solutions:
- Use faster models (Claude Haiku, GPT-4o Mini)
- Shorten input text
- Check your internet speed
- Try again during off-peak hours
Solutions:
- Close other applications
- Reduce font size in Settings
- Disable window animations (OS setting)
- Check CPU usage in Task Manager
Expected behavior:
- Renderer changes (HTML/CSS/TS in renderer/) → Auto-reload ✅
- Main process changes → Manual restart required
⚠️
For main process changes:
- Press Ctrl+C to stop
- Run
npm startagain
This is expected. Electron Forge doesn't support the "rs" restart command.
To restart:
- Ctrl+C then
npm start
Solution:
rm -rf .vite node_modules package-lock.json
npm install
npm startSolution:
npm run typecheck # Check for errorsFix any type errors shown, then rebuild.
-
Check the logs:
npm start 2>&1 | tee debug.log
-
Clear everything and rebuild:
rm -rf .vite node_modules npm install npm start
-
Report an issue:
- Include your OS and version
- Include error messages from console
- Include steps to reproduce
- GitHub: https://github.com/lestephen/compose-booster/issues
# Start in mock mode (no API calls)
MOCK_API=true npm start
# Clean rebuild
rm -rf .vite node_modules && npm install && npm start
# Check for TypeScript errors
npm run typecheck
# Package the app
npm run package
# View Electron logs (Windows)
npm start 2>&1
# View Electron logs (macOS/Linux)
npm start 2>&1 | tee output.logLast Updated: December 2024