Skip to content

Conversation

@qnixsynapse
Copy link
Contributor

@qnixsynapse qnixsynapse commented Jul 21, 2025

On Windows, spawning the llamacpp server was causing an unwanted terminal window to appear. This is now fixed by combining CREATE_NO_WINDOW with CREATE_NEW_PROCESS_GROUP using .creation_flags(...), ensuring that the process runs in the background without a console window.

This change only applies to Windows builds.


Important

Prevents terminal window from opening on Windows when spawning llamacpp server by adjusting process creation flags in load_llama_model().

  • Behavior:
    • On Windows, prevents terminal window from opening when spawning llamacpp server by combining CREATE_NO_WINDOW with CREATE_NEW_PROCESS_GROUP in load_llama_model().
    • Change is specific to Windows builds only.

This description was created by Ellipsis for d30d819. You can customize this summary. It will automatically update as commits are pushed.

On Windows, spawning the llamacpp server was causing an unwanted terminal window
to appear. This is now fixed by combining `CREATE_NO_WINDOW` with
`CREATE_NEW_PROCESS_GROUP` using `.creation_flags(...)`, ensuring that the
process runs in the background without a console window.

This change only applies to 64-bit Windows builds.
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 d30d819 in 1 minute and 13 seconds. Click for details.
  • Reviewed 15 lines of code in 1 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/utils/extensions/inference_llamacpp_extension/server.rs:147
  • Draft comment:
    Good fix! Combining CREATE_NO_WINDOW with CREATE_NEW_PROCESS_GROUP effectively prevents the unwanted terminal window on Windows. As an optional improvement, consider using constants from a Windows-specific crate (e.g., windows-sys or winapi) for better clarity and maintainability.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_OBL04HXCdyvAVLh9

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@github-actions
Copy link
Contributor

Barecheck - Code coverage report

Total: 35%

Your code coverage diff: -0.01% ▾

✅ All code changes are covered

Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

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

LGTM

@qnixsynapse qnixsynapse merged commit 08de0fa into release/v0.6.6 Jul 21, 2025
16 of 19 checks passed
@qnixsynapse qnixsynapse deleted the fix/prevent_console_win_llama branch July 21, 2025 07:54
@github-project-automation github-project-automation bot moved this to QA in Jan Jul 21, 2025
@github-actions github-actions bot added this to the v0.6.6 milestone Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants