Skip to content

[Bug]: Shell command subprocess missing CREATE_NO_WINDOW flag causes cmd window flash #4832

Description

@felixphong

QwenPaw Version

Desktop App (qwenpaw-backend.exe), Windows 10

Description

When the Agent invokes execute_shell_command tool on Windows, a cmd.exe window flashes each time.

Root cause: subprocess created without CREATE_NO_WINDOW flag (0x08000000).

Environment

  • QwenPaw version: Desktop App (latest)
  • OS: Windows 10
  • Install: Desktop one-click installer

Steps

  1. Use QwenPaw Desktop on Windows
  2. Ask agent to call execute_shell_command
  3. See cmd window flash

Fix

Add creationflags=0x08000000 (CREATE_NO_WINDOW) to subprocess call.

Ref: https://docs.python.org/3/library/subprocess.html#subprocess.CREATE_NO_WINDOW

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions