Skip to content

chore: remove ~13,000 lines of dead Electron code#53

Merged
webdevcody merged 6 commits intomainfrom
cleanup/remove-dead-electron-code
Dec 13, 2025
Merged

chore: remove ~13,000 lines of dead Electron code#53
webdevcody merged 6 commits intomainfrom
cleanup/remove-dead-electron-code

Conversation

@SuperComboGamer
Copy link
Collaborator

@SuperComboGamer SuperComboGamer commented Dec 12, 2025

Body:

Summary

  • Removed obsolete Electron IPC handlers and services that were replaced by REST API
  • Deleted electron/services/ directory (18 files)
  • Deleted electron/agent-service.js and electron/auto-mode-service.js
  • Renamed main-simplified.jsmain.js and preload-simplified.jspreload.js
  • Removed unused dependencies from app package.json

What Remains

The Electron layer now only handles 10 IPC handlers for native OS features:

  • File dialogs
  • Shell operations
  • App info

All business logic uses the REST API server.

Stats

  • 26 files changed
  • 11,309 deletions
  • 218 additions

All business logic has been migrated to the REST API server. This removes
obsolete Electron IPC handlers and services that are no longer used:

- Deleted electron/services/ directory (18 files)
- Deleted electron/agent-service.js
- Deleted electron/auto-mode-service.js
- Renamed main-simplified.js → main.js
- Renamed preload-simplified.js → preload.js
- Removed unused dependencies from package.json

The Electron layer now only handles native OS features (10 IPC handlers):
- File dialogs, shell operations, and app info

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @SuperComboGamer, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a major architectural cleanup, removing a substantial amount of legacy Electron code that was no longer necessary due to the adoption of a REST API for core functionalities. The goal is to create a leaner, more maintainable Electron application that primarily serves as a wrapper for native OS interactions, while offloading complex business logic to a separate backend server. This change drastically reduces the Electron codebase footprint and simplifies its role within the application.

Highlights

  • Codebase Reduction: Approximately 13,000 lines of obsolete Electron-specific code have been removed, significantly streamlining the application's architecture.
  • Electron Simplification: The Electron main and preload processes have been simplified to handle only 10 core native OS features, delegating all other business logic to the REST API server.
  • IPC Handler Removal: Obsolete Electron IPC handlers and services, previously used for agent and auto-mode functionalities, have been entirely removed as they were replaced by the REST API.
  • Dependency Cleanup: Unused dependencies related to the removed Electron services, such as @anthropic-ai/claude-agent-sdk and @homebridge/node-pty-prebuilt-multiarch, have been removed from package.json.
  • File Renaming: The main Electron entry points main-simplified.js and preload-simplified.js have been renamed to main.js and preload.js respectively, reflecting the new simplified architecture.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a major refactoring that removes approximately 13,000 lines of dead code from the Electron application by moving all business logic to a separate backend server. The Electron layer is now a thin client responsible only for native OS features like file dialogs and shell operations, communicating with the backend via a REST API. This is an excellent architectural improvement that simplifies the codebase and separates concerns effectively. My review found one minor regression where the handler for opening external links was removed, which I've suggested adding back.

SuperComboGamer and others added 5 commits December 12, 2025 19:07
Restores the handler that opens target="_blank" links in the default
browser instead of trying to create a new Electron window.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…f his butt and switches the npm run stuff ;)
- Introduced a new DeleteSessionDialog component for confirming session deletions.
- Integrated the delete session dialog into the SessionManager component, allowing users to delete sessions with a confirmation prompt.
- Updated the UI to handle session deletion more intuitively, enhancing user experience.
- Refactored existing delete confirmation logic to utilize the new DeleteConfirmDialog component for consistency across the application.
- Added 'data' directory to .gitignore to prevent tracking of generated files.
- Ensured that sensitive environment files remain untracked by keeping '.env' entry.
…cody/automaker into cleanup/remove-dead-electron-code
@webdevcody webdevcody merged commit 9afcc5f into main Dec 13, 2025
1 check passed
@Shironex Shironex deleted the cleanup/remove-dead-electron-code branch December 13, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants