-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: close side windows should not kill background processes #5076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: close side windows should not kill background processes #5076
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to 588de66 in 55 seconds. Click for details.
- Reviewed
36
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
4
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src-tauri/src/lib.rs:112
- Draft comment:
Clarify why we check for 'main' window to only kill background processes when the main window is closed. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
2. src-tauri/src/lib.rs:115
- Draft comment:
Consider handling errors from the client.delete call (e.g., log if the request fails) and possibly using an async approach to avoid blocking. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
3. src-tauri/src/lib.rs:117
- Draft comment:
Avoid using unwrap() on window.emit; consider handling the error gracefully to prevent potential panics during shutdown. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
4. src-tauri/src/lib.rs:114
- Draft comment:
Consider avoiding hardcoding the kill endpoint URL; using a configurable constant would improve maintainability. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
Workflow ID: wflow_8IrgXZnbMAzF14ja
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed ea7b200 in 41 seconds. Click for details.
- Reviewed
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src-tauri/src/core/mcp.rs:66
- Draft comment:
Changed from a single argument "tool run" to two separate arguments "tool" and "run". This likely ensures proper parsing by the binary. Consider adding a brief comment explaining this change for clarity. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
Workflow ID: wflow_odXJIanjLeHEg3ok
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
This is the build for this pull request. You can download it from the Artifacts section here: Build URL. |
This is the build for this pull request. You can download it from the Artifacts section here: Build URL. |
This is the build for this pull request. You can download it from the Artifacts section here: Build URL. |
Describe Your Changes
This PR fixes an issue where users close any side windows of the app could cause background services to be terminated (cortex, llama.cpp). It should just kill these processes on exit.
This include a small fix when running tool using uvx

Fixes Issues
Self Checklist
Important
Fix window event handling to only terminate background processes when the main window is closed, and update command argument in
run_mcp_commands()
.on_window_event
insrc-tauri/src/lib.rs
to only terminate background processes when the main window is closed.run_mcp_commands()
insrc-tauri/src/core/mcp.rs
from"tool run"
to"tool"
.src-tauri/src/lib.rs
.This description was created by
for ea7b200. You can customize this summary. It will automatically update as commits are pushed.