Skip to content

Windows 0.159.0 managed app-server opens transient terminal windows for Git metadata and command hooks #49356

Open

Description

@FatherM

On Windows 11, Codex CLI using the managed app-server daemon 0.159.0 opens multiple transient Windows Terminal windows when a user submits a message.

A SetWinEventHook capture of console-window creation/show events and process command lines identified these direct children of the managed codex.exe app-server:

  • git -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse HEAD
  • git -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor=false remote -v
  • pwsh.exe -NoProfile -Command "<installed lean-ctx executable> hook observe" after tool calls.

The same capture recorded Windows Terminal window titles changing to the Git executable path. These processes are brief enough to be missed by ordinary process snapshots. Git metadata collection is performed by app-server itself; it is not an agent-issued Git tool call or a Blender MCP child.

Expected: metadata collection and noninteractive hooks run without allocating visible console windows, preserving their normal functionality.

Please inspect the Windows creation flags on the shared subprocess-launch paths used by Git metadata collection and hooks. A root fix should suppress console allocation (for example CREATE_NO_WINDOW where appropriate) rather than disabling Git metadata or command hooks. No source-level root cause has been confirmed yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIapp-serverbughookswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions