fix(gui): implement missing Tauri backend commands for action gap fixes#363
Merged
fix(gui): implement missing Tauri backend commands for action gap fixes#363
Conversation
This PR addresses the Action Gaps audit findings for the cortex-gui IDE, implementing 16 missing backend commands that were invoked from the frontend. ## Changes ### New Modules - **search.rs**: Search and replace functionality - search_replace_all: Replace matches across multiple files - search_replace_in_file: Replace all matches in a single file - search_replace_match: Replace a single match - **notebook.rs**: Notebook kernel execution - notebook_execute_cell: Execute code in a notebook cell - notebook_interrupt_kernel: Interrupt running kernel - notebook_shutdown_kernel: Shutdown a kernel - notebook_start_kernel: Start a new kernel for a notebook - **process.rs**: Process management - terminate_cortex_process: Kill processes with Unix/Windows support ### Git Enhancements (git.rs) - git_branch_rename: Rename a local branch - git_reset_soft: Soft reset to a commit (keeps changes staged) - git_clean: Clean untracked files - git_stage_lines: Stage specific lines from a file - git_unstage_lines: Unstage specific lines from a file - git_remote_add: Alias for frontend naming convention - git_remote_remove: Alias for frontend naming convention - git_remote_rename: Alias for frontend naming convention ### Updated Files - lib.rs: Registered all new commands in invoke_handler - AUDIT_REPORT.md: Updated with fix status ## Impact - Fixes silent failures when using search/replace in project - Enables notebook cell execution - Allows proper process termination from Process Explorer - Fixes git branch rename, reset, clean operations - Resolves naming mismatches between frontend and backend
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
This PR addresses the Action Gaps audit findings for the cortex-gui IDE, implementing 16 missing backend commands that were invoked from the frontend but had no corresponding Tauri command handler.
Problem
The previous audit identified that many UI elements in the IDE were non-functional because they invoked backend commands that didn't exist. This caused silent failures when users:
Solution
New Modules
search.rs- Search and replace functionalitysearch_replace_all: Replace matches across multiple filessearch_replace_in_file: Replace all matches in a single filesearch_replace_match: Replace a single matchnotebook.rs- Notebook kernel executionnotebook_execute_cell: Execute code in a notebook cellnotebook_interrupt_kernel: Interrupt running kernelnotebook_shutdown_kernel: Shutdown a kernelnotebook_start_kernel: Start a new kernel for a notebookprocess.rs- Process managementterminate_cortex_process: Kill processes with Unix/Windows supportGit Enhancements (
git.rs)git_branch_rename: Rename a local branchgit_reset_soft: Soft reset to a commit (keeps changes staged)git_clean: Clean untracked filesgit_stage_lines: Stage specific lines from a filegit_unstage_lines: Unstage specific lines from a filegit_remote_add/remove/rename: Aliases for frontend naming conventionsTesting
cargo fmtAudit Report
The updated
AUDIT_REPORT.mdnow reflects the status of all fixes and remaining work.Breaking Changes
None - all changes are additive.