8000 notify is broken on Windows: here-string flattened and < eaten by cmd · Issue #6 · Mnehmos/mnehmos.ooda.mcp · GitHub
[go: up one dir, main page]

Skip to content

notify is broken on Windows: here-string flattened and < eaten by cmd #6

Open

Description

@Mnehmos

The toast-notification script in src/tools/system.ts:345-360 is built as a multi-line PowerShell here-string and passed as an inline argument through cmd.

Two failures compound:

  1. Newlines are flattened, so @...@ no longer parses as a here-string.
  2. cmd interprets the literal <toast> XML as input redirection.

Repro

notify(title: x, message: y)
-> Error: Command failed: powershell -Command ...
   < was unexpected at this time.

Fix

Pass the script via stdin or a temp .ps1 file rather than as an inline cmd argument, so newlines and < survive.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0